/* ==========================================================================
   Single Post CSS (Leitura de Artigo)
   ========================================================================== */

/* Container focado para leitura (mais estreito que o site todo) */
.single-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 15px;
    background: transparent; /* Removido o branco, herda do body */
    box-shadow: none;        /* Sem sobra / sem borda */
}

.single-article {
    margin-bottom: 40px;
}

/* Cabeçalho do Post */
.entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2rem; /* Menor como solicitado */
    color: var(--color-text-main);
    margin: 0 0 15px;
    line-height: 1.25;
    font-weight: 700;
}

.meta-details {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-details a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.meta-details a:hover {
    text-decoration: none;
}

/* Imagem Destacada */
.post-thumbnail {
    margin: 0 0 40px; 
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Corpo do Texto */
.entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text-main);
}

/* Artigos Recomendados (Related Posts) */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border, #eee);
}

.related-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-text-main, #333);
    text-align: left;
}

@media screen and (max-width: 768px) {
    .related-title {
        font-size: 1.5rem;
        text-align: center;
    }
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-text-main);
    line-height: 1.3;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-primary-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--color-text-muted);
    background: var(--color-surface-alt);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* Rodapé do Artigo */
.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-bottom-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    margin-bottom: 25px;
    justify-content: flex-start;
}

.post-bottom-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 999px;
    line-height: 1;
    color: var(--color-text-muted);
}

.post-bottom-meta > span svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: 0 0 14px;
    opacity: 0.9;
}

.post-bottom-meta .category-inline a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.post-bottom-meta .byline .author a {
    font-weight: 700;
}

.tags-links {
    margin-bottom: 20px;
}

.tags-links a {
    display: inline-block;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tags-links a:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}

/* Area de Bio do Autor */
.author-bio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: var(--color-surface); /* Puxa fundo limpo dentro da página cinza */
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.author-avatar img {
    border-radius: 50%; /* Faz a foto do autor redonda */
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px;
    font-size: 1.3rem;
    color: var(--color-text-main);
}

.author-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0 0 15px;
    line-height: 1.5;
}

.author-link {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

/* Navegação Anterior/Próximo dentro do Post */
.post-navigation-single {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.post-navigation-single a {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.post-navigation-single a:hover {
    text-decoration: underline;
}

.nav-next { text-align: right; }

/* Responsivo Mobile */
@media screen and (max-width: 768px) {
    .single-container {
        padding: 0 15px;
        margin: 30px auto;
        box-sizing: border-box; /* Previne bug de largura excedida com o padding */
    }

    .entry-title {
        font-size: 1.4rem; /* Super compacto na tela do celular */
    }

    .entry-content {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .post-bottom-meta {
        padding: 10px;
        gap: 8px;
    }

    .post-bottom-meta > span {
        padding: 7px 10px;
        font-size: 0.84rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .post-navigation-single {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-next { text-align: center; }
}
