/* ============================================================
   VARIÁVEIS E BASE
   ============================================================ */
:root {
    --post-max-width: 800px; /* Largura ideal para leitura */
    --accent-color: #ff6b00;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

.post-elite-wrapper {
    background-color: #fff;
    padding-bottom: 80px;
    font-family: 'Inter', sans-serif;
}

/* Barra de Progresso no Topo */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #ff8e3c, var(--accent-color));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Container Principal */
.post-container {
    max-width: var(--post-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================================
   HEADER E META
   ============================================================ */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.post-breadcrumb a {
    text-decoration: none;
    color: var(--accent-color);
}

.post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 30px;
    letter-spacing: -1.5px;
}

.post-meta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 40px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.meta-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.author-name { color: #0f172a; }
.post-date { color: var(--text-muted); }

/* Compartilhamento */
.social-share { display: flex; gap: 10px; }
.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* ============================================================
   IMAGEM E CONTEÚDO
   ============================================================ */
.post-featured-figure {
    margin: 0 -100px 40px -100px; /* Imagem levemente mais larga que o texto */
}

.post-main-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Corpo do Texto (A alma do post) */
.post-body {
    font-size: 1.25rem; /* Fonte grande para leitura confortável */
    line-height: 1.8;
    color: #334155;
}

.post-body p { margin-bottom: 25px; }

.post-body h2, .post-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0f172a;
    margin: 40px 0 20px 0;
}

/* ============================================================
   WIDGETS DE ENGAJAMENTO
   ============================================================ */

/* Caixa de CTA Praticar */
.post-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin: 60px 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h3 { margin: 0 0 10px 0; font-size: 1.6rem; }
.cta-text p { margin: 0; opacity: 0.8; }

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.3s;
}

.cta-button:hover { background: #e65a00; transform: scale(1.05); }

/* Newsletter embutida */
.inline-newsletter {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.news-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.news-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.news-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
}

.news-form button {
    background: #0f172a;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Artigos Relacionados */
.related-posts { margin-top: 60px; border-top: 2px solid #f1f5f9; padding-top: 40px; }
.section-label { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card { text-decoration: none; color: inherit; }
.related-img-wrapper { height: 140px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.related-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.related-card:hover img { transform: scale(1.1); }
.related-card h5 { font-size: 1rem; margin: 0 0 5px 0; line-height: 1.4; }
.related-date { font-size: 12px; color: var(--text-muted); }

/* Botão Voltar ao Topo */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: 0.3s;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1000px) {
    .post-featured-figure { margin: 0 0 30px 0; }
}

@media (max-width: 768px) {
    .post-title { font-size: 2.2rem; }
    .cta-inner { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
    .inline-newsletter { flex-direction: column; text-align: center; }
    .news-form { flex-direction: column; }
}