/* PHLWin Super Ace - Main Stylesheet */
/* Mobile-first responsive design for casino gaming website */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #FFFFFF;
    background: linear-gradient(135deg, #273746 0%, #1a252f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color variables */
:root {
    --primary-color: #00CED1;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --dark-bg: #273746;
    --gold-color: #CD853F;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
    --gradient-secondary: linear-gradient(135deg, #D2691E 0%, #FF6347 100%);
    --gradient-gold: linear-gradient(135deg, #CD853F 0%, #DAA520 100%);
    --shadow-light: 0 2px 10px rgba(0, 206, 209, 0.2);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

h1 {
    font-size: 2.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(0, 206, 209, 0.5);
}

/* Container and layout */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.section {
    padding: 2rem 0;
    margin-bottom: 1rem;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(39, 55, 70, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.site-name {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-header {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 44px;
    min-height: 44px;
}

.btn-register {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-login {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

.hamburger {
    width: 2.4rem;
    height: 2.4rem;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation */
.mobile-nav {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: rgba(39, 55, 70, 0.98);
    backdrop-filter: blur(15px);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-dark);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--white);
    font-size: 1.4rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.mobile-nav-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Main content */
.main-content {
    margin-top: 7rem;
    padding-bottom: 8rem;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}

.carousel-slide {
    display: none;
    position: relative;
    cursor: pointer;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    color: var(--white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active::after {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(210, 105, 30, 0.3);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(205, 133, 63, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

/* Game grid styles */
.games-section {
    margin-bottom: 3rem;
}

.games-category {
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    text-align: center;
    color: var(--white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.game-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px;
}

.game-item:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

/* Content sections */
.content-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* Footer styles */
.footer {
    background: var(--dark-bg);
    border-top: 2px solid var(--primary-color);
    padding: 2rem 0 8rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-link {
    padding: 0.8rem;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

.partners-section {
    margin: 2rem 0;
}

.partners-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem;
}

.copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(39, 55, 70, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-color);
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary-color);
    background: rgba(0, 206, 209, 0.1);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive design for larger screens */
@media (min-width: 431px) {
    .container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .header-content {
        max-width: 1200px;
        padding: 1rem 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .bottom-nav-content {
        max-width: 1200px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-gold {
    color: var(--gold-color);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

/* Loading and animation styles */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 206, 209, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 206, 209, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 206, 209, 0);
    }
}

/* Toast notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 206, 209, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.form-input.error {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #00FFFF;
        --secondary-color: #FF8C00;
        --accent-color: #FFD700;
    }
}

/* Print styles */
@media print {
    .header,
    .bottom-nav,
    .carousel-container,
    .scroll-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        margin-top: 0;
        padding-bottom: 0;
    }
} 