/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0f172a; /* Fundo Dark Premium */
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   2. HEADER E MENU DE NAVEGAÇÃO (ESTRATÉGIA SÓ MATEMÁTICA)
   ========================================================================== */
header {
    background-color: #1e293b;
    border-bottom: 2px solid #e11d48;
    padding: 15px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #f43f5e;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-principal ul {
    display: flex;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-principal a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-principal a:hover, .nav-principal a.active {
    color: #fff;
    background-color: #e11d48;
}

/* ==========================================================================
   3. ESTRUTURA DO CONTEÚDO PRINCIPAL
   ========================================================================== */
#main-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    text-align: center;
}

.resultado-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #fff;
}

.data-sorteio {
    color: #94a3b8;
    font-size: 15px;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Alertas de acumulação/premiação */
.alerta-acumulou {
    background-color: rgba(225, 29, 72, 0.15);
    border: 1px solid #e11d48;
    color: #fda4af;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin: 15px 0;
    animation: pulse 2s infinite;
}

.valor-estimado {
    font-size: 22px;
    margin-top: 5px;
    color: #fff;
}

.alerta-premiada {
    margin: 15px 0;
}

.status-badge {
    background-color: #e11d48;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #fff;
}

.status-badge.premiada {
    background-color: #10b981; /* Verde */
}

/* ==========================================================================
   4. PAINEL VISUAL PREMIUM (SUBSTITUTO DO CANVAS)
   ========================================================================== */
.painel-resultados {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 35px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.painel-resultados h2 {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.grid-esferas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 650px;
    margin: 0 auto;
}

/* Esferas com efeito 3D realístico via CSS radial-gradient */
.esfera-premium {
    background: radial-gradient(circle at 35% 35%, #ff4d73 0%, #e11d48 40%, #880621 100%);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.5), 0 8px 15px rgba(0,0,0,0.4);
    transform: translateY(0);
    transition: transform 0.2s;
}

.esfera-premium:hover {
    transform: translateY(-4px);
}

.esfera-premium .num {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.4);
}

/* ==========================================================================
   5. TEXTOS E ESTATÍSTICAS (SEO GOOGLE)
   ========================================================================== */
.estatisticas-rapidas {
    margin-bottom: 30px;
}

.card-estatistica {
    background: #1e293b;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    border: 1px solid #334155;
    display: inline-block;
}

.card-estatistica strong {
    color: #fff;
}

/* ==========================================================================
   6. PAGINAÇÃO EM CADEIA (PULO DO GATO RASTREAMENTO)
   ========================================================================== */
.paginacao-concursos {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.btn-pag {
    background: #1e293b;
    color: #94a3b8;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    flex: 1;
    border: 1px solid #334155;
    transition: all 0.2s;
}

.btn-pag:hover {
    color: #fff;
    border-color: #e11d48;
    background-color: #1e293b;
}

/* ==========================================================================
   7. RODAPÉ E ANIMAÇÕES
   ========================================================================== */
footer {
    background: #0f172a;
    padding: 20px;
    text-align: center;
    color: #475569;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================================
   8. RESPONSIVIDADE COMPLETA (MOBILE FIRST)
   ========================================================================== */
@media (max-width: 600px) {
    .header-container { 
        justify-content: center; 
    }
    .nav-principal ul {
        justify-content: center;
    }
    .paginacao-concursos { 
        flex-direction: column; 
    }
    .esfera-premium { 
        width: 48px; 
        height: 48px; 
    }
    .esfera-premium .num {
        font-size: 18px;
    }
    .resultado-header h1 {
        font-size: 24px;
    }
}