/* =================================
   1. RESET BÁSICO E CONFIGURAÇÕES GLOBAIS
   ================================= */
:root { color-scheme: light; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', 'Inter', sans-serif; background-color: #f7f7f7; color: #333; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* =================================
   2. HEADER E NAVEGAÇÃO
   ================================= */
header { background-color: #111; color: #fff; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav a { text-decoration: none; color: #fff; font-weight: 500; font-size: 1rem; transition: color 0.3s; }
nav a:hover { color: #00c851; }
.language-switcher img, .flags img { width: 24px; height: auto; cursor: pointer; border: 2px solid transparent; border-radius: 4px; transition: border-color 0.3s; vertical-align: middle; }
.language-switcher img:hover, .flags img:hover { border-color: #00c851; }

/* =================================
   3. PÁGINA INICIAL / SEÇÕES GLOBAIS
   ================================= */
.hero { background: linear-gradient(to right, #0f2027, #203a43, #2c5364); color: white; text-align: center; padding: 5rem 2rem; }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-content .subtitle { font-size: 1.2rem; color: #ccc; max-width: 600px; margin: 0 auto 2rem auto; }
.content-section, .beneficios, .suggestions { max-width: 1000px; margin: 3rem auto; padding: 0 2rem; text-align: center; }
.content-section h2, .suggestions h2 { font-size: 2rem; margin-bottom: 1rem; color: #0f2027; }
.content-section p { text-align: justify; margin-bottom: 1rem; }
.btn-acessar { padding: 0.8rem 2rem; font-size: 1.1rem; border: none; border-radius: 8px; background-color: #00c851; color: white; cursor: pointer; text-decoration: none; transition: background-color 0.3s ease; }
.btn-acessar:hover { background-color: #007e33; }

/* =================================
   4. PÁGINA DE PALPITES (ESTILOS ESPECÍFICOS)
   ================================= */
.palpites-container { max-width: 1200px; margin: 3rem auto; padding: 0 1rem; }
.palpites-container h1 { text-align: center; font-size: 1.8rem; color: #111; margin-bottom: 0.2rem; }
.palpites-container h2, .palpites-container .subtitle { text-align: center; font-weight: 400; font-size: 1.3rem; color: #444; margin-top: 0; margin-bottom: 2rem; }
.filtros { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.filtros select, .filtros input[type="date"] { padding: 0.5rem; font-size: 1rem; border-radius: 8px; border: 1px solid #ccc; }

/* =================================
   5. COMPONENTES (CARDS)
   ================================= */
.cards, .cards-full-list, .beneficios { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; text-align: left; }
.card, .card-beneficio { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 1rem; border: 1px solid #eee; transition: transform 0.3s ease; }
.card:hover, .card-beneficio:hover { transform: translateY(-5px); }
.card .times, .card-beneficio h3 { font-weight: 600; font-size: 1.1rem; color: #0f2027; }
.card .info, .card-beneficio p { margin: 0.3rem 0; color: #555; font-size: 0.9rem; }
.card .palpite { background: #e8f0ff; border-left: 4px solid #4285f4; padding: 0.75rem; margin-top: 0.5rem; font-size: 0.9rem; white-space: pre-wrap; border-radius: 0 8px 8px 0; }

/* =================================
   6. FOOTER
   ================================= */

footer {
    background-color: #111;         /* fundo escuro */
    color: #ccc;                    /* texto cinza claro */
    padding: 20px 10px;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
    border-top: 2px solid #222;
}

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

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;  /* muda para branco no hover */
}

.footer-container p {
    margin: 6px 0;
}

.footer-container .disclaimer {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    max-width: 800px;
    margin: 10px auto;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-links a {
        margin: 0;
    }
}


/* =================================
   7. UTILIDADES (BOTÃO VOLTAR AO TOPO)
   ================================= */
.back-to-top { position: fixed; bottom: 20px; right: 20px; background: #4285f4; color: #fff; border: none; padding: 0.6rem 1rem; border-radius: 50px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); font-size: 1.2rem; display: none; z-index: 999; }
.back-to-top:hover { background: #3367d6; }

/* =================================
   8. ESTILOS RESPONSIVOS (MOBILE)
   ================================= */

/* Aplica para telas com largura máxima de 768px */
@media (max-width: 768px) {
    
    /* --- Ajustes no Header --- */
    .header-container {
        position: relative;
    }
    
    .main-nav {
        display: none; /* Esconde o menu de desktop */
        position: absolute;
        top: 100%; /* Posiciona abaixo do header */
        left: 0;
        width: 100%;
        background-color: #111; /* Fundo escuro igual ao header */
        flex-direction: column;
        padding: 1rem 0;
    }

    /* Classe que o JavaScript vai adicionar para mostrar o menu */
    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column; /* Itens do menu em coluna */
        width: 100%;
        text-align: center;
    }

    .main-nav li {
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid #333; /* Linha separadora */
    }

    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .hamburger {
        display: block; /* Mostra o botão hambúrguer */
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    /* Esconde o menu de desktop (precisa ser feito aqui) */
    nav {
      display: none;
    }
    
    /* --- Ajustes no Corpo da Página --- */
    .hero-content h1 {
        font-size: 2rem; /* Diminui o título principal */
    }

    .content-section, .palpites-container {
        margin-top: 2rem;
        padding: 0 1rem; /* Menos espaçamento lateral */
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .filtros {
        flex-direction: column; /* Filtros em coluna */
    }
    
    /* --- Ajustes no Footer --- */
    footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column; /* Links em coluna */
        gap: 0.5rem;
    }
}

/* Oculta o botão hambúrguer em telas grandes */
.hamburger {
    display: none;
}
