/* css/post.css - Versão Final Limpa */

/* ===========================
   LAYOUT PRINCIPAL
   =========================== */

/* Correção para o Menu Fixo (Empurra o conteúdo para baixo) */
.post-section {
    display: block;
    position: relative;
    padding-top: 140px !important; /* Ajuste se o menu cobrir o topo */
    z-index: 0 !important; /* Garante que fique ABAIXO do menu (que é 9999) */
}

/* Grid: Conteúdo (Esquerda) + Sidebar (Direita) */
.post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 partes texto, 1 parte lateral */
    gap: 4rem;
    margin-top: 0 !important;
    padding-top: 2rem;
    padding-bottom: 4rem;
    align-items: start;
}

/* ===========================
   ESTILOS DO CABEÇALHO (Título, Data, Capa)
   =========================== */

/* Container do Cabeçalho */
.post-header {
    display: block !important;
    position: relative !important;
    width: 100%;
    height: auto !important;
    margin-bottom: 3rem !important; /* Espaço entre título e imagem */
    clear: both;
}

/* Data e Categoria */
.post-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

/* Título do Post */
.post-title {
    display: block !important;
    position: relative !important;
    font-size: 2.5rem;
    line-height: 1.3;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0;
    word-wrap: break-word;
}

/* Imagem Principal (Capa) */
.post-featured-image {
    display: block !important;
    position: relative !important;
    width: 100%;
    height: auto;
    max-height: 550px;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 3rem; /* Espaço para o texto começar */
    border-radius: 8px;
    clear: both;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===========================
   TIPOGRAFIA DO CORPO (O Texto do Post)
   =========================== */

.post-body-typography {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: #e0e0e0;
    display: block;
    position: relative;
}

.post-body-typography p {
    margin-bottom: 1.5rem;
}

.post-body-typography h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
}

.post-body-typography h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: #f0f0f0;
}

/* --- Listas (Bolinhas e Números) --- */
.post-body-typography ul, 
.post-body-typography ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem !important; /* Recuo obrigatório */
    color: #d0d0d0;
    list-style-position: outside;
}

.post-body-typography ul {
    list-style-type: disc !important; /* Bolinha sólida */
}

.post-body-typography ol {
    list-style-type: decimal !important; /* 1, 2, 3 */
}

.post-body-typography li {
    display: list-item !important;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* --- Links (Azul Neon) --- */
.post-body-typography a {
    color: #00d4ff !important;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.post-body-typography a:hover {
    color: #80eaff !important;
    text-decoration: none;
}

/* Imagens no meio do texto */
.post-body-typography img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

/* ===========================
   SIDEBAR (Lateral Direita)
   =========================== */

.post-sidebar {
    position: sticky;
    top: 140px; /* Trava ao rolar, respeitando o header */
    height: fit-content;
}

.sidebar-widget {
    background: #f9f9f9;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #111;
}

.sidebar-widget p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Botão WhatsApp */
.btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-sidebar:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.sidebar-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.sidebar-socials a:hover {
    color: var(--primary-color);
}

/* ===========================
   RESPONSIVIDADE (Mobile)
   =========================== */
@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: 1fr; /* Uma coluna só */
        gap: 3rem;
    }

    .post-sidebar {
        position: static;
        order: 2; /* Sidebar vai pro final */
        margin-top: 2rem;
    }

    .post-title {
        font-size: 2rem;
    }
}