/*
 * blog.css - Estilos específicos do blog AKTI
 *
 * @version 1.1.0
 * @date    2026-06-12
 * @site    aluguer-pos.com
 *
 * CHANGELOG:
 * =========
 *
 * v1.1.0 (2026-06-12) - Estilos de tabela de comparação
 *   [NOVO] Tabelas dentro de .blog-article-content: header vinho, zebra striping, 1ª coluna 34%
 *   [ALTER] th/td adicionados à regra de text-align:left (não herdam o justify do corpo)
 *
 * v1.0.1 (2026-05-19) - Texto justificado nos artigos
 *   [ALTER] .blog-article-content e .blog-article-lead com text-align:justify + hyphens:auto
 *   [ALTER] h2/h3/listas/citações mantêm alinhamento à esquerda (justificar nestes elementos fica feio)
 *
 * v1.0.0 (2026-05-19) - Versão inicial
 *   [NOVO] Layout do blog index (cards), artigo individual (hero + content + CTA + relacionados)
 *   [NOVO] Categorias coloridas, hero gradient, espaçamento consistente com akti2.css
 */

/* ─────────────────────────────────────────────────────── */
/* Layout base — afasta o conteúdo da navbar fixa          */
/* ─────────────────────────────────────────────────────── */
.blog-page-wrap {
    padding-top: 110px;
    padding-bottom: 80px;
    background: #fafafa;
}

/* ─────────────────────────────────────────────────────── */
/* Hero do índice + headers de artigo                      */
/* ─────────────────────────────────────────────────────── */
.blog-index-hero {
    background: linear-gradient(135deg, #8B1B3F 0%, #6a1530 100%);
    color: #fff;
    padding: 56px 0 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.blog-index-hero::after {
    content: '';
    position: absolute; right: -40px; bottom: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(228,186,63,0.18) 0%, transparent 70%);
}
.blog-index-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}
.blog-index-hero p {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 720px;
}

/* ─────────────────────────────────────────────────────── */
/* Card do índice                                          */
/* ─────────────────────────────────────────────────────── */
.blog-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card-link:hover .blog-card {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(139,27,63,0.15);
}
.blog-card-hero {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    background-repeat: no-repeat;
}
.blog-card-hero:not([style*="url"]) {
    background: linear-gradient(135deg, #8B1B3F 0%, #E4BA3F 100%);
}
.blog-card-body { padding: 18px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-cat {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.blog-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 8px;
}
.blog-card-lead {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 12px;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}
.blog-card-meta .read-more { color: #8B1B3F; font-weight: 600; }

/* ─────────────────────────────────────────────────────── */
/* Artigo individual                                       */
/* ─────────────────────────────────────────────────────── */
.blog-article {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
}
.blog-article-hero {
    aspect-ratio: 16/7;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}
.blog-article-hero:not([style*="url"]) {
    background: linear-gradient(135deg, #8B1B3F 0%, #E4BA3F 100%);
}
.blog-article-body { padding: 36px clamp(20px, 5vw, 56px) 56px; }
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 18px;
}
.blog-article-meta .blog-card-cat { font-size: 0.7rem; padding: 3px 9px; }
.blog-article h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    line-height: 1.2;
    color: #1a1a1a;
    margin: 6px 0 14px;
}
.blog-article-lead {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #444;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    text-align: justify;
    hyphens: auto;
}
.blog-article-content {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #2a2a2a;
    text-align: justify;
    hyphens: auto;
}
/* h2/h3/listas/citações/tabelas mantêm alinhamento natural à esquerda */
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content li,
.blog-article-content blockquote,
.blog-article-content th,
.blog-article-content td { text-align: left; }

/* Tabelas de comparação dentro do artigo */
.blog-article-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 0.96rem;
}
.blog-article-content table thead th {
    background: #8B1B3F;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 12px;
    border: 1px solid #8B1B3F;
}
.blog-article-content table td,
.blog-article-content table th {
    padding: 9px 12px;
    border: 1px solid #e3e3e3;
    vertical-align: middle;
}
.blog-article-content table tbody tr:nth-child(even) { background: #faf7f8; }
.blog-article-content table tbody td:first-child { width: 34%; }
.blog-article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.55rem;
    margin: 36px 0 14px;
    color: #1a1a1a;
}
.blog-article-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 28px 0 10px;
    color: #1a1a1a;
}
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content ul, .blog-article-content ol { padding-left: 22px; margin-bottom: 16px; }
.blog-article-content li { margin-bottom: 6px; }
.blog-article-content a { color: #8B1B3F; font-weight: 500; }
.blog-article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.blog-article-content blockquote {
    border-left: 4px solid #E4BA3F;
    background: #fffbef;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}
.blog-article-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ─────────────────────────────────────────────────────── */
/* TOC (índice no artigo)                                  */
/* ─────────────────────────────────────────────────────── */
.blog-toc {
    background: #f8f9fa;
    border-left: 3px solid #8B1B3F;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 0 0 28px;
}
.blog-toc-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8B1B3F;
    margin-bottom: 8px;
}
.blog-toc ol { margin: 0; padding-left: 22px; }
.blog-toc a { color: #444; text-decoration: none; }
.blog-toc a:hover { color: #8B1B3F; text-decoration: underline; }

/* ─────────────────────────────────────────────────────── */
/* CTA box                                                 */
/* ─────────────────────────────────────────────────────── */
.blog-cta {
    background: linear-gradient(135deg, #8B1B3F 0%, #6a1530 100%);
    color: #fff;
    padding: 28px 32px;
    border-radius: 14px;
}
.blog-cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff;
}
.blog-cta-text { color: rgba(255,255,255,0.9); }
.blog-cta .btn-light { color: #8B1B3F; border-radius: 999px; padding: 10px 24px; }
.blog-cta .btn-light:hover { background: #E4BA3F; color: #1a1a1a; }

/* ─────────────────────────────────────────────────────── */
/* Relacionados                                            */
/* ─────────────────────────────────────────────────────── */
.blog-relacionados h2 {
    font-family: 'Poppins', sans-serif;
    color: #1a1a1a;
}

/* ─────────────────────────────────────────────────────── */
/* Share buttons                                           */
/* ─────────────────────────────────────────────────────── */
.blog-share {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.blog-share-label { color: #666; font-size: 0.9rem; margin-right: 4px; }
.blog-share a {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.blog-share a:hover { transform: translateY(-2px); }
.blog-share .share-fb { background: #1877F2; }
.blog-share .share-wa { background: #25D366; }
.blog-share .share-li { background: #0A66C2; }
.blog-share .share-x  { background: #1a1a1a; }

/* ─────────────────────────────────────────────────────── */
/* Estado vazio                                            */
/* ─────────────────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    color: #777;
}
.blog-empty i { font-size: 3rem; color: #ddd; display: block; margin-bottom: 12px; }
