/* ========================================
   PERFORMARTECH - BLOG (PADRÃO DE POST)
   Carregado em toda public/blog/<slug>/index.html
======================================== */

/* ===== BADGE DE CATEGORIA (topo do artigo) ===== */
.blog-post-tag {
    color: var(--cor-primaria);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    justify-content: center;
}

/* ===== CABEÇALHO DO ARTIGO ===== */
.blog-post-header {
    padding: 6rem 0 2rem;
    text-align: center;
    background-color: var(--cor-fundo-secundario);
}

.blog-post-header h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    max-width: 820px;
    margin: 0.75rem auto 1rem;
}

.blog-post-meta {
    color: var(--cor-texto);
    font-size: 0.9rem;
    opacity: 0.85;
}

.blog-post-cover {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0;
    border-radius: 12px;
    display: block;
}

/* ===== CORPO DO ARTIGO (TIPOGRAFIA DE LEITURA LONGA) ===== */
.blog-post-content {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.25rem 1.5rem;
    line-height: 1.8;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content a {
    color: var(--cor-primaria);
    text-decoration: underline;
}

.blog-post-content blockquote {
    border-left: 3px solid var(--cor-primaria);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--cor-titulo);
    font-style: italic;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid var(--cor-borda);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.blog-post-content th {
    background: var(--cor-fundo-secundario);
    color: var(--cor-titulo);
    font-weight: var(--font-weight-semibold);
}

.blog-post-content table caption {
    caption-side: bottom;
    text-align: left;
    font-size: 0.8rem;
    padding-top: 0.5rem;
    color: var(--cor-texto);
}

/* Resumo/principais pontos no topo do artigo (bom para leitores e AEO) */
.blog-post-summary {
    background: var(--cor-fundo-secundario);
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.blog-post-summary h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.blog-post-summary ul {
    margin: 0 0 0 1.25rem;
}

.blog-post-summary li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

/* FAQ ao final do artigo (sem accordion, otimizado pra leitura e AEO) */
.blog-post-faq {
    border-top: 1px solid var(--cor-borda);
    padding-top: 2rem;
    margin-top: 2rem;
}

.blog-post-faq-item {
    margin-bottom: 1.5rem;
}

.blog-post-faq-item h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.blog-post-faq-item p {
    margin: 0;
    line-height: 1.7;
}

/* Navegação de volta ao blog e tags do post */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.blog-post-tags a {
    background: var(--cor-fundo-secundario);
    color: var(--cor-texto);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 1.8rem;
    }

    .blog-post-header {
        padding: 5rem 0 1.5rem;
    }

    .blog-post-content {
        margin: 2rem auto;
    }
}
