/* ==========================================================================
   Estilos para a Página de Post do Blog (blog_post.css)
   ========================================================================== */

/* --- Contêiner Principal do Artigo --- */
.blog-post-container {
    max-width: 800px; /* Largura ideal para leitura */
    margin: 2rem auto;
    padding: 2rem 2.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Cabeçalho do Post --- */
.post-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212529;
}

.post-meta {
    color: #6c757d; /* Cinza sutil para metadados */
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 15px; /* Espaçamento entre os itens */
}

.post-meta span {
    display: inline-flex;
    align-items: center;
}

.post-meta .bi {
    margin-right: 5px;
}

.post-category a {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 4px 10px;
    border-radius: 20px; /* Formato de pílula */
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
}

.post-category a:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
}

/* --- Imagem de Destaque e Áudio --- */
.blog-post-container .img-fluid {
    margin-bottom: 2.5rem;
    border-radius: 8px;
}

.audio-player-container {
    margin-bottom: 2.5rem;
}

/* --- Conteúdo Principal do Post (Renderizado do Markdown) --- */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8; /* Espaçamento generoso para leitura */
    color: #343a40;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
}

.post-content h2 {
    font-size: 2.2rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.8rem;
}

.post-content h4 {
    font-size: 1.5rem;
}

.post-content a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px dotted #0d6efd;
    transition: color 0.2s, border-bottom 0.2s;
}

.post-content a:hover {
    color: #0a58ca;
    border-bottom: 1px solid #0a58ca;
}

.post-content ul,
.post-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-left: 5px solid #0d6efd;
    font-style: italic;
    color: #495057;
}

.post-content strong {
    color: #000;
}

/* --- Navegação e Posts Relacionados --- */
.back-to-blog {
    display: inline-block;
    margin-top: 2.5rem;
    text-decoration: none;
    font-weight: 500;
    color: #0d6efd;
    transition: color 0.2s;
}

.back-to-blog .bi {
    vertical-align: middle;
}

.back-to-blog:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.related-posts h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}

.related-posts .list-group-item {
    border-color: #e9ecef;
    color: #495057;
}

.related-posts .list-group-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .blog-post-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .post-header h1 {
        font-size: 2.2rem;
    }

    .post-content {
        font-size: 1rem;
    }
}