/* ==========================================
   1. VARIÁVEIS ULTRA-PREMIUM (Dark Slate Theme)
   ========================================== */
:root {
    --bg-base: #0B0E14; /* Fundo base muito profundo e elegante */
    --bg-surface: #121620; /* Cartões com ligeiro contraste */
    --bg-surface-hover: #181D29;
    --primary: #3B82F6; /* Azul Moderno (Clean Tech) */
    --primary-light: #60A5FA;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-light: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Torna a fonte mais nítida */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ==========================================
   2. HEADER (Glassmorphism Suave)
   ========================================== */
header {
    padding: 24px 40px;
    display: flex;
    justify-content: center;
    background-color: rgba(11, 14, 20, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: -0.5px; /* Fonte mais junta e limpa */
}

.logo span { color: var(--primary-light); }

/* ==========================================
   3. HERO BANNER (Cinematic Fade)
   ========================================== */
.banner-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 32px;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Borda muito subtil para delimitar a imagem */
    border: 1px solid var(--border-light); 
}

.banner-container img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 21/9;
}

/* O segredo: Fazer a imagem desaparecer subtilmente para o fundo do site */
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(11, 14, 20, 0.3) 50%, rgba(11, 14, 20, 0.1) 100%);
    z-index: 1;
}

.banner-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.banner-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-text {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: #FFFFFF;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Scroll modernizado (Pequeno movimento suave em vez de salto brusco) */
.scroll-more {
    position: absolute;
    bottom: 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.scroll-more:hover { color: var(--text-main); }
.scroll-more i { 
    font-size: 1rem; 
    animation: slideDown 2.5s infinite ease-in-out; 
}

@keyframes slideDown {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ==========================================
   4. TÍTULOS DE SECÇÕES
   ========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-wrapper i { 
    color: var(--primary-light); 
    font-size: 1.4rem; 
}

.section-title-wrapper h2 { 
    font-size: 1.6rem; 
    font-weight: 700; 
    letter-spacing: -0.5px;
}

.btn-view-all {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    border-radius: 8px; /* Cantos arredondados tech, não "pílulas" */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-all:hover { 
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* ==========================================
   5. TOP OFFERS (Casinos) - Luxo Simples
   ========================================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 96px;
}

.offer-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Curva super suave */
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.offer-card:hover { 
    transform: translateY(-6px); /* Elevação elegante */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
    border-color: var(--border-hover);
}

.offer-card > img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.offer-card:hover > img { transform: scale(1.05); }

/* Gradiente que transita suavemente do preto para o transparente */
.offer-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 85%; 
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(11,14,20,0.8) 35%, transparent 100%);
    z-index: 2;
}

/* Badge minimalista */
.badge-new {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 4;
    letter-spacing: 1px;
}

.offer-name-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px; 
    /* Removemos o fundo preto quadrado. O gradiente suave já faz o trabalho de forma mais limpa */
    background: transparent; 
}

.offer-text-fallback {
    font-size: 1.4rem; 
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
}

.offer-logo {
    max-width: 160px; 
    max-height: 45px; 
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.4s ease;
}

.offer-card:hover .offer-logo { transform: scale(1.03); }

/* ==========================================
   6. COMUNIDADE E TWITCH
   ========================================== */
.community-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 96px;
}

.twitch-container {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    position: relative;
}

/* Card Offline Premium: Textura Radial Subtil */
.twitch-offline-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    background: radial-gradient(circle at center, #181329 0%, var(--bg-surface) 100%);
    transition: all 0.4s ease;
    position: absolute;
    top: 0; left: 0; z-index: 2;
}

.twitch-offline-card:hover { 
    background: radial-gradient(circle at center, #21193B 0%, var(--bg-surface) 100%);
}

.twitch-logo-box {
    background: rgba(145, 70, 255, 0.1);
    border: 1px solid rgba(145, 70, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.twitch-offline-card:hover .twitch-logo-box {
    transform: translateY(-4px);
    background: rgba(145, 70, 255, 0.15);
}

.twitch-logo-box i {
    font-size: 2.5rem;
    color: #9146FF; /* Roxo Twitch Oficial */
}

.twitch-text-box { text-align: center; }

.twitch-text-box h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.twitch-text-box p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   7. REDES SOCIAIS (Lista Premium)
   ========================================== */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-item {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    padding: 20px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.social-item:hover { 
    background: var(--bg-surface-hover); 
    border-color: var(--border-hover);
    transform: translateY(-2px); /* Movimento mais subtil */
}

.social-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 20px;
}

.social-info { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

.social-info h4 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1.2;
}

.social-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.social-arrow { 
    margin-left: auto; 
    color: var(--text-muted); 
    font-size: 1rem; 
    transition: all 0.3s ease;
}

.social-item:hover .social-arrow {
    color: var(--text-main);
    transform: translateX(4px);
}

/* ==========================================
   8. FOOTER CORPORATIVO
   ========================================== */
footer {
    background-color: #06080C; /* Ainda mais escuro que a base */
    border-top: 1px solid var(--border-light);
    padding: 64px 20px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.footer-logo span { color: var(--primary-light); }

.footer-socials { display: flex; gap: 20px; }

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.4rem;
    background: var(--bg-surface);
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.footer-socials a:hover { 
    color: var(--text-main); 
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Caixa de Avisos muito mais elegante */
.footer-warnings {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.age-icon {
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.warning-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 400;
}

.warning-text strong { color: var(--text-main); font-weight: 600;}

.footer-bottom {
    width: 100%;
    max-width: 1200px;
    margin: 48px auto 0;
    color: #475569;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

/* ==========================================
   9. RESPONSIVIDADE (Telemóveis e Tablets)
   ========================================== */
@media (max-width: 900px) { 
    .community-grid { grid-template-columns: 1fr; } 
    .banner-text { font-size: 3.5rem; }
    .footer-top { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 768px) { 
    .banner-text { font-size: 2.5rem; } 
    .banner-container img { aspect-ratio: 16/9; }
    
    .footer-warnings {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}