@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

/* ===============
   CSS VARIABLES – Light Mode
   =============== */
:root {
    --primary-color: #059669; /* Emerald Green */
    --secondary-color: #0f172a; /* Slate Dark */
    --accent-color: #d97706; /* Gold Amber */
    --bg-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.85);
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --hover-overlay: rgba(5, 150, 105, 0.08);
    --transition-speed: 0.3s;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.05);
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --glow-color: rgba(5, 150, 105, 0.2);
}

/* ===============
   DARK THEME (Default & Primary Casino Aesthetic)
   =============== */
[data-theme="dark"] {
    --primary-color: #10b981; /* Neon Emerald */
    --secondary-color: #f8fafc; /* Ice White */
    --accent-color: #fbbf24; /* Luxury Gold */
    --bg-color: #05060b;
    --surface-color: rgba(13, 16, 28, 0.75);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --hover-overlay: rgba(16, 185, 129, 0.12);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.5);
    --glow-color: rgba(16, 185, 129, 0.45);
}

/* ===============
   RESET & BASE STYLES
   =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

html,
body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Light Background */
body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(5, 150, 105, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Dark Background overrides */
html[data-theme="dark"] body {
    background-color: #05060b;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.03) 0%, transparent 60%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* ===============
   LAYOUT COMPONENTS
   =============== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===============
   HEADER (Premium Glassmorphism)
   =============== */
.header {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed);
}

[data-theme="dark"] .header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2));
    transition: transform var(--transition-speed);
}

.logo:hover img {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--text-color);
    border: 1px solid transparent;
}

.nav-list a:hover {
    color: var(--primary-color);
    background: var(--hover-overlay);
}

.nav-list a.active {
    color: #fff !important;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle button */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background: var(--hover-overlay);
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

.theme-toggle-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: flex; }

html[data-theme="dark"] .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-icon-dark { display: flex; }

/* Login & Sign-up Buttons */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
}

.btn-login:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--hover-overlay);
    transform: translateY(-2px);
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px var(--glow-color);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.mobile-menu-toggle:hover {
    background: var(--hover-overlay);
    color: var(--primary-color);
}

/* ===============
   ADS BANNER
   =============== */
.ad-banner-container {
    margin-top: 110px;
    text-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-banner-container a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.ad-banner-container img {
    max-width: 100%;
    transition: transform var(--transition-speed);
}

.ad-banner-container a:hover {
    transform: scale(1.015);
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.15);
}

/* ===============
   FOOTER (Premium Style)
   =============== */
.footer {
    background: #05060b;
    padding: 80px 0 40px;
    margin-top: 96px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2));
}

.footer-desc {
    line-height: 1.7;
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--glow-color);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: #f8fafc;
    position: relative;
    letter-spacing: 0.5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: -8px; width: 30px; height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.contact-list li p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-list li p i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-col a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
    transform: translateX(6px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

.footer-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.footer-warning-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.footer-copyright {
    text-align: right;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1100px) {
    .header-inner {
        height: 80px;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0d0f1a;
        border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
        padding: 0 24px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    }

    .nav-list.active {
        max-height: 450px;
        padding: 20px 24px;
    }

    .nav-list a {
        padding: 14px 20px;
        border-radius: var(--radius-md);
        text-align: left;
        width: 100%;
        display: block;
        font-size: 0.9rem;
    }

    .nav-list a.active {
        background: var(--primary-color);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 72px;
    }

    .nav-list {
        top: 72px;
    }

    .logo img {
        height: 38px;
    }

    .btn-login,
    .btn-signup {
        padding: 8px 18px;
        font-size: 0.78rem;
    }

    .ad-banner-container {
        margin-top: 92px;
    }

    .footer {
        padding: 60px 0 24px;
        margin-top: 64px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-warning {
        justify-content: center;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 64px;
    }

    .nav-list {
        top: 64px;
    }

    .logo img {
        height: 34px;
    }

    /* Hide desktop signup/login inside header on super tiny screens to prevent wrap */
    .header-actions .btn-login,
    .header-actions .btn-signup {
        display: none !important;
    }

    .ad-banner-container {
        margin-top: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===============
   MOBILE BOTTOM AUTH BAR
   =============== */
.mobile-bottom-auth {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-auth {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0d0f1a;
        padding: 12px 20px;
        gap: 12px;
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        border-top: 1.5px solid rgba(255, 255, 255, 0.06);
    }
    
    .mob-btn-login,
    .mob-btn-signup {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        font-family: var(--font-heading);
        font-weight: 800;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-radius: 999px;
        transition: all var(--transition-speed);
    }

    .mob-btn-login {
        color: #f1f5f9;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(255, 255, 255, 0.03);
    }
    
    .mob-btn-login:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        background: var(--hover-overlay);
    }

    .mob-btn-signup {
        background: linear-gradient(135deg, var(--primary-color) 0%, #047857 100%);
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px var(--glow-color);
    }
    
    .mob-btn-signup:hover {
        box-shadow: 0 8px 18px var(--glow-color);
    }

    body {
        padding-bottom: 70px; /* offset for bottom bar */
    }
}