/*
Theme Name: Doula na Missão
Author: Doula na Missão
Description: Tema customizado para manter a identidade visual do site principal (Versão Otimizada).
Version: 1.1
*/

:root {
    --color-1: #734858; 
    --color-2: #59163B; 
    --color-3: #7A4B5B; 
    --color-4: #5E2625; 
    --color-5: #D9857E; 
    --bg-light: #FBF9F8; 
    --text-dark: #3A2E32;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: var(--color-1); transition: var(--transition); }
a:hover { color: var(--color-5); }

/* --- CABEÇALHO --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5%; background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.logo-img { max-height: 45px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2.5rem; }
nav a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dark); }
nav a:hover { color: var(--color-5); }

/* --- RODAPÉ --- */
footer {
    background-color: var(--color-4); color: #fff; text-align: center;
    padding: 4rem 5%; font-size: 0.85rem; font-weight: 300; letter-spacing: 1px;
}
.footer-logo { max-height: 40px; margin-bottom: 1.5rem; opacity: 0.8; }


/* --- LAYOUT DA RAIZ DO BLOG (INDEX) --- */
.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
    min-height: 70vh;
}

.blog-page-title {
    font-size: 3.5rem;
    color: var(--color-2);
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog-page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-3);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Grid de Artigos Moderno */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(89, 22, 59, 0.04);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(89, 22, 59, 0.08);
    border-bottom-color: var(--color-5);
}

.post-card-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #eee;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-5);
    margin-bottom: 0.8rem;
}

.post-card h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-card h2 a {
    color: var(--color-2);
}

.post-card h2 a:hover {
    color: var(--color-5);
}

.post-card-excerpt {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-1);
    align-self: flex-start;
}

.btn-read-more:hover {
    color: var(--color-5);
}


/* --- PAGINAÇÃO --- */
.blog-pagination {
    text-align: center;
    margin-top: 2rem;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.blog-pagination .page-numbers {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--color-2);
    color: #fff;
}


/* --- INTERNA DO ARTIGO (SINGLE) --- */
.single-post-container {
    max-width: 800px;
}

.back-to-blog {
    margin-bottom: 2.5rem;
}

.btn-back {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-back:hover {
    color: var(--color-5);
    transform: translateX(-3px);
}

.post-single .post-meta-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1rem;
}

.post-single h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--color-2);
    margin-bottom: 2.5rem;
}

.post-single-thumbnail {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(89, 22, 59, 0.06);
}

.post-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.8;
}

.post-content p { margin-bottom: 2rem; }
.post-content strong { font-weight: 600; color: var(--color-2); }
.post-content h2, .post-content h3 { color: var(--color-2); margin: 3rem 0 1.5rem 0; }
.post-content h2 { font-size: 2.2rem; }
.post-content h3 { font-size: 1.6rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; }

/* Blockquote estilizada igual à sua home */
.post-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-5);
    background-color: rgba(217, 133, 126, 0.05);
    font-style: italic;
    color: var(--color-2);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    border-radius: 0 12px 12px 0;
}


/* --- SEÇÃO POSTS RELACIONADOS --- */
.related-posts-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(89, 22, 59, 0.1);
}

.related-posts-section h3 {
    font-size: 2rem;
    color: var(--color-2);
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(89, 22, 59, 0.06);
}

.related-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eee;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-card h4 {
    padding: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.related-card h4 a { color: var(--color-2); }
.related-card h4 a:hover { color: var(--color-5); }


/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    header { flex-direction: column; gap: 1.5rem; }
    nav ul { display: none; }
    .blog-page-title { font-size: 2.5rem; }
    .post-single h1 { font-size: 2.2rem; }
    .blog-container { padding: 3rem 1.5rem; }
}