/* ===============
   NEON CASINO DARK THEME - CSS VARIABLES
   =============== */
:root {
    /* Neon Pink/Purple Primary */
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #f472b6;
    --primary-soft: rgba(236, 72, 153, 0.15);
    
    /* Neon Cyan Secondary */
    --accent-color: #06b6d4;
    --accent-hover: #0891b2;
    --accent-soft: rgba(6, 182, 212, 0.15);
    
    /* Dark Backgrounds */
    --secondary-color: #e5e7eb;
    --dark-color: #020617;
    
    /* Dark Theme Backgrounds */
    --bg-color: #020617;
    --bg-white: #020617;
    --surface-color: #0f172a;
    --surface-hover: #1e293b;
    --surface-soft: #020617;
    
    /* Text Colors */
    --text-color: #cbd5f5;
    --text-heading: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Borders & Effects */
    --border-color: #1e293b;
    --border-light: #334155;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-speed: 0.3s;
    --transition-slow: 0.5s;
    
    /* Radii - sharp/neon */
    --radius-xl: 12px;
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;
    --radius-xs: 2px;
    --radius-full: 9999px;
    
    /* Shadows - neon glow */
    --shadow-xs: 0 0 10px rgba(236, 72, 153, 0.2);
    --shadow-soft: 0 0 20px rgba(6, 182, 212, 0.25);
    --shadow-medium: 0 0 30px rgba(236, 72, 153, 0.3);
    --shadow-large: 0 0 50px rgba(6, 182, 212, 0.35);
    --shadow-card: 0 0 25px rgba(236, 72, 153, 0.2);
    
    /* Gradients - neon */
    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --gradient-hero: linear-gradient(135deg, #020617 0%, #1e1b4b 50%, #020617 100%);
    
    /* Typography - futuristic */
    --font-heading: 'Orbitron', 'Rajdhani', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===============
   RESET
   =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    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;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Dark Casino Background */
body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* ===============
   GLOBAL COMPONENTS
   =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============
   HEADER - Neon Casino
   =============== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Scrolled state — applied via JS */
.header.scrolled {
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 24px;
    transition: height 0.3s ease;
}

.header.scrolled .header-inner {
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}
.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-list a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-color);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast) ease;
}
.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Neon Casino Buttons */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-color);
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}
.btn-login:hover {
    color: #020617;
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    opacity: 0.95;
}

/* ===============
   MOBILE MENU TOGGLE — 3 lines hamburger
   =============== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 9999;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* ===============
/* ===============
   MOBILE DRAWER — Drop from top, almost full height
   =============== */

/* Overlay — not needed, drawer covers screen */
.mobile-overlay {
    display: none !important;
}

/* The drawer panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 92vh;
    background: #000000;
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s ease;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active {
    transform: translateY(0);
    visibility: visible;
}

/* Header row: logo left, X right */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 20px;
    flex-shrink: 0;
    min-height: 64px;
}

/* Logo inside drawer */
.mobile-drawer-logo {
    display: flex;
    align-items: center;
}

.mobile-drawer-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.4));
}

/* X close button — cyan bordered box */
.mobile-drawer-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid var(--accent-color);
    border-radius: 6px;
    color: var(--accent-color);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.mobile-drawer-close:hover {
    background: rgba(6, 182, 212, 0.15);
    color: #ffffff;
}

/* Nav list — centered */
.mobile-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    list-style: none;
    width: 100%;
}

.mobile-nav-list li {
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 13px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    transition: color 0.15s ease;
}

.mobile-nav-list a::before,
.mobile-nav-list a::after {
    display: none;
    content: none;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--accent-color);
}

/* Hide unused elements */
.mobile-drawer-divider,
.mobile-drawer-actions,
.mobile-drawer-footer {
    display: none;
}

/* ===============
   ADS BLOCK
   =============== */
.ad-banner-container {
    margin-top: 72px;
    text-align: center;
}

.ad-banner-container + .ad-banner-container {
    margin-top: 24px;
}

.ad-banner-container img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.ad-banner-container img:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-large);
}

/* ===============
   FOOTER - Neon Casino
   =============== */
.footer {
    background: var(--surface-color);
    padding: 60px 0 24px;
    margin-top: 80px;
    border-top: 1px solid var(--primary-color);
    position: relative;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 15px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 14px;
}

/* ===============
   RESPONSIVE
   =============== */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .header-actions .btn-login,
    .header-actions .btn-signup {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        height: 70px;
        gap: 12px;
    }

    .logo {
        margin-right: 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .logo img {
        height: 40px;
        max-width: 140px;
    }

    /* Hide desktop buttons on mobile */
    .header-actions .btn-login,
    .header-actions .btn-signup {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .ad-banner-container {
        margin-top: 82px;
    }

    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 66px;
        gap: 8px;
    }

    .logo img {
        height: 36px;
        max-width: 120px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .ad-banner-container {
        margin-top: 78px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===============
   MOBILE BOTTOM AUTH BAR - Neon Casino
   =============== */
.mobile-bottom-auth {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-auth {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 12px 16px;
        gap: 12px;
        z-index: 1000;
        box-shadow: 0 -4px 30px rgba(236, 72, 153, 0.3);
        border-top: 1px solid var(--primary-color);
    }
    
    .mob-btn-login,
    .mob-btn-signup {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 48px;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.9rem;
        border-radius: var(--radius-md);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all var(--transition-fast);
    }

    /* Entrar */
    .mob-btn-login {
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
        background: transparent;
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    }
    .mob-btn-login:hover {
        color: #020617;
        border-color: var(--accent-color);
        background: var(--accent-color);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }

    /* Cadastre-se */
    .mob-btn-signup {
        background: var(--gradient-primary);
        color: #fff !important;
        border: none;
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    }
    .mob-btn-signup:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
    }

    /* hide header buttons strictly on mobile */
    .header-actions .btn-login,
    .header-actions .btn-signup {
        display: none !important;
    }

    /* pad body bottom so it doesn't overlap text/footer */
    body {
        padding-bottom: 80px;
    }
}

/* ===============
   SCROLL REVEAL ANIMATIONS
   =============== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===============
   PAGE LOAD FADE-IN
   =============== */
body {
    animation: page-fade-in 0.4s ease both;
}

@keyframes page-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===============
   SMOOTH SCROLL
   =============== */
html {
    scroll-behavior: smooth;
}

/* ===============
   FOCUS VISIBLE - Accessibility
   =============== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===============
   SELECTION COLOR
   =============== */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: var(--text-heading);
}
