/* --- 1. DEFINIÇÃO DE VARIÁVEIS DE COR --- */
:root {
    --color-primary: #1e88e5;
    --color-secondary: #00c853;
    --color-background: #f4f7f9;
    --color-text-dark: #333;
    --color-text-light: #555;
    --color-shadow: rgba(30, 136, 229, 0.2);
    
    /* Cores Likert (Vibrantes) */
    --likert-1-red: #e74c3c;
    --likert-2-orange: #e67e22;
    --likert-3-yellow: #f1c40f;
    --likert-4-blue: #3498db;
    --likert-5-green: #2ecc71;
    --gradient-bg: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); /* Fundo Teste */
}

/* --- 2. RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--color-background);
    color: var(--color-text-dark);
}

/* --- 3. CONTAINERS GERAIS E LAYOUT --- */
/* ATENÇÃO: Removi .header-container daqui para não conflitar com o novo header */
.hero-section, .credibilidade-section, .footer-container, .ad-top-banner,
.content-profissao-page, .resultado-container, .contato-container, .artigo-page-container,
.legal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px;
}

/* --- 4. HEADER (MENU) --- */
/* REMOVIDO: O estilo do cabeçalho agora é controlado exclusivamente 
   pelo arquivo includes/header.php para evitar conflitos. */

/* --- 5. AD PLACEHOLDERS E ESTÉTICA --- */
.ad-top-banner, .ad-credibilidade, .ad-mid-content, .ad-footer-content, .ad-lateral-sticky {
    background-color: #f0f0f0;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border-radius: 8px;
    font-size: 0.9em;
    color: #666 !important;
    font-weight: normal;
    font-style: italic;
    border: 1px dashed #bbb;
}

.ad-credibilidade {
    width: 300px;
    min-height: 300px;
    margin-left: 20px;
}

/* --- 6. PÁGINA INICIAL (HOME) --- */
.hero-section {
    text-align: center;
    padding: 80px 15px;
}

.hero-section h1 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.hero-section h2 {
    font-size: 1.2em;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 6px 15px var(--color-shadow);
}

.cta-button:hover {
    background-color: #00993d;
}

.gratuito-tag {
    margin-top: 20px;
    color: var(--color-secondary);
    font-weight: bold;
}

.credibilidade-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.credibilidade-content {
    flex-grow: 1;
    max-width: 65%;
}

.credibilidade-content h3 {
    font-size: 1.8em;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    border-left: 5px solid var(--color-primary);
    padding-left: 10px;
}

.credibilidade-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--color-text-light);
}

#pauseButton {
    background: none;
    border: 2px solid var(--color-primary); 
    border-radius: 50%;
    width: 40px; 
    height: 40px; 
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#pauseButton:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- 7. PÁGINA DE ARTIGO (artigo.php) --- */
.artigo-page-container {
    padding: 0 15px;
}

.artigo-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.artigo-principal {
    flex: 3;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.artigo-sidebar {
    flex: 1.2;
    position: sticky;
    top: 20px;
}

.artigo-header h1 {
    font-size: 2.5em;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.artigo-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.artigo-meta i {
    color: var(--color-secondary);
    margin-right: 5px;
}

.artigo-conteudo h2 {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.artigo-conteudo p {
    color: var(--color-text-light);
    margin-bottom: 18px;
    line-height: 1.7;
    text-align: justify;
}

.artigo-conteudo p a {
    color: var(--color-secondary);
    font-weight: bold;
    transition: color 0.2s ease;
}

.artigo-conteudo p a:hover {
    color: var(--color-primary);
}

.artigo-conteudo .blog-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-final-artigo-box {
    background-color: #f0f7ff;
    border: 2px solid var(--color-secondary);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-final-text {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.cta-final-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-final-button:hover {
    background-color: #00993d;
    color: white;
    transform: scale(1.02);
}

.cta-sidebar-box {
    background: #f0f7ff;
    border: 2px solid var(--color-primary);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cta-sidebar-box h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.cta-sidebar-box .cta-button {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1em;
}

.cta-sidebar-box .cta-button:hover {
    color: white !important;
}

.mais-lidos {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 20px;
}

.mais-lidos h3 {
    color: var(--color-text-dark);
    margin-bottom: 10px;
    border-left: 4px solid var(--color-secondary);
    padding-left: 8px;
}

.mais-lidos a {
    display: block;
    padding: 8px 0;
    color: var(--color-primary);
    border-bottom: 1px dotted #ddd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mais-lidos a:hover {
    color: var(--color-text-dark);
}

/* --- 8. PÁGINA DE PROFISSÃO (profissao.php) --- */
.content-profissao-page {
    padding: 0 15px;
}

.main-layout {
    display: flex;
    gap: 30px;
}

.coluna-principal {
    flex: 3;
}

.coluna-lateral {
    flex: 1.5;
}

.titulo-e-resumo h1 {
    font-size: 2.2em;
}

.resumo-riasec {
    font-size: 1.1em;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 20px;
}

.coluna-principal h2 {
    font-size: 1.6em;
    color: var(--color-text-dark);
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.bloco-afiliado-cursos {
    background-color: #e6f7ff;
    border: 1px solid var(--color-primary);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.bloco-afiliado-cursos h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.cta-afiliado-button {
    display: inline-block;
    background-color: #ffc107;
    color: var(--color-text-dark);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 15px 10px 0 10px;
}

.cta-afiliado-button:hover {
    background-color: #e0a800;
}

.ad-lateral-sticky {
    position: sticky;
    top: 20px;
    min-height: 500px;
}

.veja-tambem h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.veja-tambem ul {
    list-style: none;
    padding: 0;
}

/* --- 9. PÁGINA DO TESTE (teste.php) --- */
.teste-body-wrapper {
    padding-bottom: 50px;
}

.teste-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.teste-header h1 {
    font-size: 1.8em;
    color: var(--color-text-dark);
    text-align: center;
}

.teste-header h2 {
    font-size: 1.1em;
    color: var(--color-text-light);
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
}

/* Barra de Informações */
.progress-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    color: var(--color-text-light);
}

#timerDisplay {
    font-weight: bold;
    color: var(--likert-1-red);
}

.progress-bar-container {
    margin-bottom: 30px;
    text-align: center;
}

#progressText {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.progress-bar-bg {
    background-color: #eee;
    border-radius: 15px;
    height: 10px;
    overflow: hidden;
}

#progressBarFill {
    height: 100%;
    width: 0%;
    background-color: var(--color-secondary);
    transition: width 0.4s ease;
}

/* Container da Pergunta */
.question-content-wrapper {
    min-height: 150px;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--color-text-dark);
    line-height: 1.4;
}

/* Escala Likert */
.likert-scale {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.likert-option {
    flex: 1;
    padding: 15px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.likert-scale .likert-option:nth-child(1) { background-color: var(--likert-1-red); }
.likert-scale .likert-option:nth-child(2) { background-color: var(--likert-2-orange); }
.likert-scale .likert-option:nth-child(3) { background-color: var(--likert-3-yellow); }
.likert-scale .likert-option:nth-child(4) { background-color: var(--likert-4-blue); }
.likert-scale .likert-option:nth-child(5) { background-color: var(--likert-5-green); }

.likert-option.selected {
    border-color: #333;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.likert-option:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: white;
}

/* Navegação e Botões de Ação */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding: 0 10px;
}

.navigation-buttons button {
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 0;
}

#previousQuestionButton {
    background-color: #f0f0f0;
    color: var(--color-text-dark);
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#previousQuestionButton:hover {
    background-color: #e0e0e0;
}

#submitTestButton {
    background: linear-gradient(90deg, var(--color-primary), #66a3ff);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.navigation-buttons.final-step {
    justify-content: center;
}

.likert-key {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 0.95em;
}

.likert-key p {
    margin: 0;
    font-weight: 500;
}

/* --- 10. PÁGINA DE RESULTADO (resultado.php) --- */
.resultado-container {
    padding: 0 15px;
}

.titulo-riasec {
    color: var(--color-secondary);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
}

.resultado-layout {
    display: flex;
    gap: 30px;
}

.col-detalhes {
    flex: 3;
}

.col-anuncios-sticky {
    flex: 1.5;
}

.col-anuncios-sticky .ad-lateral-sticky {
    position: sticky;
    top: 20px;
    min-height: 500px;
}

.descricao-perfil {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 15px;
    border-left: 5px solid var(--color-primary);
    background-color: #f8f9fa;
}

.bloco-afiliado-destaque {
    background-color: #ffe6e6;
    border: 2px solid #dc3545;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.bloco-afiliado-destaque h3 {
    color: #dc3545;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.chart-container {
    max-width: 500px;
    margin: 20px auto;
}

.profissoes-sugeridas {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profissoes-sugeridas h2 {
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 30px;
}

.lista-profissoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.profissao-card {
    text-decoration: none;
    color: var(--color-text-dark);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex-basis: calc(33.33% - 15px);
    text-align: center;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profissao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.ad-card {
    background-color: #f7f7f7;
    border: 1px dashed #ccc;
    color: #666;
    font-weight: normal;
}

/* --- 11. PÁGINAS LEGAIS E CONTATO --- */
.legal-container, .contato-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contato-container {
    max-width: 700px;
}

.legal-container h1, .contato-content h1 {
    color: var(--color-primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.contato-content h1 {
    text-align: center;
}

.legal-container h2, .contato-content h2 {
    color: var(--color-text-dark);
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.contato-content h2 {
    font-size: 1.2em;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 20px;
}

.legal-container p, .legal-container li, .contato-container p {
    line-height: 1.8;
    color: var(--color-text-light);
    text-align: justify;
}

.legal-container ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.data-atualizacao {
    font-style: italic;
    color: #999;
    margin-bottom: 30px;
    font-size: 0.9em;
}

.contato-form {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contato-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.contato-alternativo a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

/* --- 12. RODAPÉ --- */
.footer-container {
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid #ddd;
    font-size: 0.8em;
    color: #666;
    background-color: #fff;
}

.footer-links a {
    color: var(--color-primary);
    margin: 0 10px;
    text-decoration: none;
}

/* --- 13. RESPONSIVIDADE (Consolidado) --- */
/* ATENÇÃO: As regras de header/menu foram removidas daqui para não conflitarem */
@media (max-width: 992px) {
    /* Credibilidade */
    .credibilidade-section {
        flex-direction: column;
        align-items: center;
    }
    .credibilidade-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .ad-credibilidade {
        width: 100%;
        min-height: 250px;
    }
    
    /* Layouts de Coluna */
    .main-layout, .resultado-layout, .artigo-layout {
        flex-direction: column;
    }
    .coluna-principal, .coluna-lateral, .col-detalhes, .col-anuncios-sticky,
    .artigo-principal, .artigo-sidebar {
        flex: 1;
        width: 100%;
        max-width: 100%;
        position: static;
    }
    
    /* Anúncios Laterais */
    .ad-lateral-sticky, .col-anuncios-sticky .ad-lateral-sticky {
        position: static;
        margin-bottom: 20px;
        min-height: 250px;
    }

    /* Cards de Profissão */
    .lista-profissoes .profissao-card {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    /* Imagens de Artigo */
    .artigo-conteudo .blog-image {
        max-width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    /* Hero */
    .hero-section h1, .artigo-header h1 {
        font-size: 2em;
    }
    .hero-section h2 {
        font-size: 1em;
    }
    .cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Teste Likert */
    .likert-scale {
        flex-wrap: wrap;
        gap: 8px;
    }
    .likert-option {
        flex-basis: calc(50% - 8px);
        font-size: 0.8em;
    }
    .question-text {
        font-size: 1.2em;
    }
    
    /* Anúncios */
    .ad-top-banner {
        height: 50px;
        min-height: 50px;
        font-size: 0.7em;
    }

    /* Resultado */
    .titulo-riasec {
        font-size: 1.8em;
    }
    .lista-profissoes .profissao-card {
        flex-basis: 100%;
    }
}