/* =========================================
   ESCOLHE UM - Global Styles
   ========================================= */

/* ===== CSS Variables ===== */
:root {
    --primary: #FF2D55;
    --secondary: #5856D6;
    --accent: #FFD60A;
    --success: #30D158;
    --whatsapp: #25D366;
    --dark: #000;
    --darker: #0A0A0A;
    --card: #1C1C1E;
    --card-hover: #2C2C2E;
    --light: #FFF;
    --gray: #8E8E93;
    --gray-dark: #48484A;
    
    /* Layout */
    --header-height: 60px;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: var(--light);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ===== Game CTA ===== */
.game-cta {
    display: none;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 20px 0;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #0b0b0e;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 45, 85, 0.2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 45, 85, 0.3);
}

.btn-play.secondary {
    background: var(--card);
    color: var(--light);
    border: 1px solid var(--gray-dark);
    box-shadow: none;
}

.btn-play.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* ===== Typography ===== */
.font-display {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-dark);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.eu-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--light);
}

/* CTA Buttons */
.btn-studio {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--secondary), #AF52DE);
    border-radius: 50px;
    color: var(--light) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-studio:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 86, 214, 0.4);
}

.btn-sponsor {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #FF9F0A);
    border-radius: 50px;
    color: var(--dark) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 214, 10, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light);
    margin: 3px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        /* Ensure the menu is always above the overlay and other page layers */
        z-index: 105;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right var(--transition);
        border-left: 1px solid var(--gray-dark);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 16px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-dark);
    }
    
    .nav-links a.btn-studio,
    .nav-links a.btn-sponsor {
        margin-top: 20px;
        text-align: center;
        border-bottom: none;
    }
    
    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        /* Keep overlay below the menu (menu is inside header stack) */
        z-index: 95;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 380px) {
    .eu-logo-img {
        height: 26px;
    }
    
    .header-content {
        padding: 10px 15px;
    }
}

/* ===== Main Content ===== */
.main {
    padding-top: calc(var(--header-height) + 20px);
    min-height: 100vh;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--gray-dark);
    margin-top: 60px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--light);
}

.footer-copy {
    color: var(--gray-dark);
    font-size: 0.8rem;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    padding: 40px 20px;
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== Cards ===== */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    transition: background var(--transition);
}

.card:hover {
    background: var(--card-hover);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: #ff4d6f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card);
    color: var(--light);
    border: 1px solid var(--gray-dark);
}

.btn-secondary:hover {
    background: var(--card-hover);
}

/* ===== Loading ===== */
.loading {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--card);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-gray { color: var(--gray); }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
