/* ==========================================
   ESTILOS DA PÁGINA DE LEITURA (ARTIGO)
   ========================================== */


/* Oculta as margens padrão do navegador */

body {
    background-color: var(--cor-fundo, #0f0f0f);
}


/* O Banner Principal (Hero) ocupando a largura toda */

.artigo-hero {
    position: relative;
    width: 100%;
    height: 65vh;
    /* Ocupa 65% da altura da tela ao abrir */
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    /* Joga o conteúdo para a base do banner */
}

#artigo-imagem {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Faz a foto preencher sem distorcer */
    z-index: 1;
}


/* Degradê dramático para o texto não sumir na foto */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient( to bottom, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.7) 60%, rgba(15, 15, 15, 1) 100%/* Fica totalmente escuro no final para emendar com a página */
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}


/* Botão de Voltar Elegante */

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--cor-acento, #d4af37);
    /* Cor Dourada */
    text-decoration: none;
    font-family: var(--font-texto, sans-serif);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--cor-acento, #d4af37);
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--cor-acento, #d4af37);
    color: #000;
}


/* Títulos do Banner */

#artigo-titulo {
    font-family: var(--font-titulo, serif);
    font-size: 3.5rem;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.artigo-meta {
    font-family: var(--font-texto, sans-serif);
    font-size: 1.1rem;
    color: var(--cor-acento, #d4af37);
    font-style: italic;
    margin: 0;
}


/* Container de Leitura do Texto */

.artigo-container {
    max-width: 800px;
    /* Largura ideal para os olhos humanos lerem */
    margin: 0 auto;
    padding: 20px 20px 80px 20px;
    position: relative;
    z-index: 3;
}

.artigo-conteudo {
    font-family: var(--font-texto, sans-serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #d1c9b8;
}

.artigo-conteudo p {
    margin-bottom: 25px;
    text-align: justify;
    /* Alinha o texto bonitinho */
}


/* Subtítulos dentro do texto */

.artigo-conteudo h3 {
    font-family: var(--font-titulo, serif);
    font-size: 2rem;
    color: #ffffff;
    margin: 50px 0 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}


/* ==========================================
   IMAGENS DENTRO DO TEXTO (FIGURAS EDITORIAIS)
   ========================================== */

.artigo-figura {
    margin: 45px 0;
    /* Dá um respiro antes e depois da imagem */
    width: 100%;
    text-align: center;
}

.artigo-figura img {
    width: 100%;
    /* Faz a imagem respeitar a largura do texto */
    max-height: 450px;
    object-fit: cover;
    border-radius: 6px;
    /* Bordas levemente arredondadas */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    /* Sombra de museu */
    border: 1px solid rgba(212, 175, 55, 0.1);
    /* Moldura dourada bem sutil */
}

.artigo-legenda {
    font-family: var(--font-texto, sans-serif);
    font-size: 0.9rem;
    color: rgba(212, 175, 55, 0.8);
    /* Cor dourada suave */
    margin-top: 12px;
    font-style: italic;
}


/* ==========================================
   RESPONSIVIDADE (Adicionar ao FINAL do artigo.css)
   ========================================== */


/* 1️⃣ BASE: Celular (Mobile-First) */

.artigo-hero {
    height: 50vh;
    /* Evita que a banner ocupe tela demais com barra do navegador */
    min-height: 320px;
}

.hero-overlay {
    padding-bottom: 20px;
    /* Mais compacto */
}

.hero-content {
    padding: 0 16px;
    /* Margens laterais seguras no celular */
}

.back-link {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}


/* Tipografia fluida (escala automática) */

#artigo-titulo {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 10px;
}

.artigo-meta {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.artigo-container {
    padding: 20px 16px 60px;
}

.artigo-conteudo {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.15rem);
    line-height: 1.7;
    text-align: left;
    /* Evita "buracos" estranhos de justificação no mobile */
}

.artigo-conteudo h3 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    margin: 35px 0 15px;
}

.artigo-figura {
    margin: 30px 0;
}

.artigo-figura img {
    max-height: 280px;
    /* Não ocupa a tela inteira ao rolar */
}

.artigo-legenda {
    font-size: 0.85rem;
}


/* 2️⃣ TABLET (≥ 768px) */

@media (min-width: 768px) {
    .artigo-hero {
        height: 65vh;
        min-height: 450px;
    }
    .hero-overlay {
        padding-bottom: 40px;
    }
    .hero-content {
        padding: 0 30px;
    }
    .back-link {
        font-size: 0.8rem;
        padding: 8px 20px;
        margin-bottom: 25px;
        letter-spacing: 2px;
    }
    .artigo-container {
        padding: 40px 30px 80px;
    }
    .artigo-conteudo {
        line-height: 1.8;
        text-align: justify;
        /* Justificado só a partir do tablet, onde há espaço */
    }
    .artigo-figura img {
        max-height: 400px;
    }
}


/* 3️⃣ DESKTOP (≥ 1024px) */

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 40px;
    }
    .artigo-container {
        padding: 50px 20px 100px;
    }
    .artigo-figura img {
        max-height: 450px;
        /* Volta ao seu valor original */
    }
}
/* ================= FONTES E REFERÊNCIAS ================= */

.fontes-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3); /* Linha tracejada dourada */
}

.fontes-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.fontes-header h3 {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    color: var(--cor-acento);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fontes-header .decorative-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.2);
    max-width: 100px;
}

.fontes-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fontes-lista li {
    font-family: var(--font-texto);
    font-size: 0.85rem;
    color: #a39b92;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

/* Um losango decorativo antes de cada fonte */
.fontes-lista li::before {
    content: '✦';
    color: var(--cor-acento);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.fontes-lista a {
    color: var(--cor-destaque);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fontes-lista a:hover {
    color: #fff;
    text-decoration: underline;
}