/* ==========================================================================
   ARQUIVO: article-page.css
   PROJETO: Site Máira Salete — Psicóloga Clínica
   DESCRIÇÃO: Estilos exclusivos da página de artigo individual (artigo.html).
   
   IMPORTANTE: Este arquivo NÃO define variáveis CSS.
   Todas as variáveis (cores, sombras, fontes) estão centralizadas em style.css.
   O artigo.html deve carregar style.css ANTES deste arquivo.
   ========================================================================== */


/* Link "← Voltar" */
.back-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--blue-psych);
}


/* ==========================================================================
   PÁGINA DO ARTIGO — LAYOUT BASE (MOBILE)
   ========================================================================== */
.article-page {
    margin-top: var(--navbar-height);
    padding: 2rem 1rem;     /* Mobile: padding compacto */
    background-color: var(--beige-light);
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem 1.5rem;   /* Mobile: padding interno menor */
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}


/* ==========================================================================
   CABEÇALHO DO ARTIGO
   ========================================================================== */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--beige-light);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;        /* Mobile: quebra linha se necessário */
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.blog-tag {
    background: var(--beige-light);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    color: var(--master-brown);
}

#article-title {
    font-family: 'Lora', serif;
    font-size: 1.8rem;      /* Mobile: título menor */
    line-height: 1.3;
    color: var(--text-dark);
    margin: 0;
    text-align: left;
}


/* ==========================================================================
   CONTEÚDO DO ARTIGO
   ========================================================================== */
.article-content {
    font-size: 1rem;        /* Mobile: fonte base */
    line-height: 1.9;
    color: var(--text-dark);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    font-family: 'Lora', serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content h1 { font-size: 1.8rem; }

.article-content h2 {
    font-size: 1.5rem;
    color: var(--brown-sugar);
}

.article-content h3 { font-size: 1.2rem; }

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.article-content em {
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
}

/* Blockquote estilizado */
.article-content blockquote {
    border-left: 4px solid var(--blue-psych);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
    background: var(--beige-light);
    border-radius: 8px;
}

.article-content a {
    color: var(--blue-psych);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--green-cta);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    display: block;
}

/* Código inline */
.article-content code {
    background: var(--beige-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Bloco de código */
.article-content pre {
    background: var(--text-dark);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: transparent;
    padding: 0;
}


/* ==========================================================================
   AUTOR DO ARTIGO
   ========================================================================== */
.article-author {
    display: flex;
    flex-direction: column;  /* Mobile: empilhado */
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    background: var(--beige-light);
    border-radius: 12px;
}

.author-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: var(--text-medium);
    font-size: 0.95rem;
}


/* ==========================================================================
   CTA DO ARTIGO
   ========================================================================== */
.article-cta {
    margin-top: 3rem;
    padding: 2rem 1.5rem;   /* Mobile: padding compacto */
    background: linear-gradient(135deg, var(--blue-psych) 0%, #3A7BC8 100%);
    border-radius: 12px;
    text-align: center;
    color: var(--white);
}

.article-cta h3 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;      /* Mobile */
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Botões (reutilizados do style.css — definidos aqui para artigo.html standalone) */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary {
    background: var(--white);
    color: var(--blue-psych);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: var(--beige-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 1rem 1.5rem;
}

/* Linha divisória do rodapé */
.article-bottom {
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
}


/* ==========================================================================
   MEDIA QUERY — TABLET (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {

    .article-page {
        padding: 3rem 2rem;
    }

    .article-container {
        padding: 3rem 2.5rem;
    }

    #article-title {
        font-size: 2.2rem;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-content h1 { font-size: 2rem; }
    .article-content h2 { font-size: 1.8rem; }
    .article-content h3 { font-size: 1.4rem; }

    /* Autor lado a lado em tablet */
    .article-author {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }

    .article-cta {
        padding: 2.5rem 2rem;
    }

    .article-cta h3 {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   MEDIA QUERY — DESKTOP (min-width: 968px)
   ========================================================================== */
@media (min-width: 968px) {

    .article-page {
        padding: 4rem 2rem;
    }

    .article-container {
        padding: 4rem;
    }

    #article-title {
        font-size: 2.8rem;
    }

    .article-content {
        font-size: 1.1rem;
    }

    .article-content h1 { font-size: 2.2rem; }
    .article-content h2 { font-size: 1.8rem; }
    .article-content h3 { font-size: 1.4rem; }

    .article-cta {
        padding: 3rem;
    }

    .article-cta h3 {
        font-size: 2rem;
    }

    .article-cta p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}
