/* ══════════════════════════════════════════════════════════
   Blog Smartcash — estilos compartilhados (listagem + artigos)
   Editar aqui vale para todas as páginas.
   ══════════════════════════════════════════════════════════ */

:root {
    --blue:        #0589d3;
    --blue-dark:   #0472b3;
    --blue-light:  #e8f4fc;
    --blue-border: rgba(5,137,211,0.2);
    --navy:        #0d1b2a;
    --navy-light:  #1a3350;
    --white:       #ffffff;
    --bg:          #f7f9fc;
    --bg-alt:      #eef3f8;
    --border:      #e2e8f0;
    --text:        #0d1b2a;
    --text-mid:    #374151;
    --text-light:  #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ── NAV (idêntico ao site) ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--white);
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(60px, calc((100% - 1200px) / 2 + 60px));
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-bg { display: flex; align-items: center; }
.nav-logo-bg img { height: 50px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-link:hover { color: var(--blue); }
.nav-link.active { color: var(--blue); font-weight: 600; }

.nav-cta {
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(5,137,211,0.3);
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-cta-short { display: none; }

.nav-login {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-login:hover { color: var(--blue-dark); }

/* ── ARTICLE HEADER ── */
.article-header {
    padding: 100px 60px 48px;
    max-width: 820px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

.article-header h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}
.article-meta time { font-weight: 500; }
.article-tag {
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── ARTICLE BODY ── */
.article-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 60px 60px;
}

.article-content {
    background: var(--white);
    border-radius: 12px;
    padding: 48px 52px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
}
.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 18px;
}

.article-content ul, .article-content ol {
    margin: 0 0 18px 24px;
    color: var(--text-mid);
    font-size: 16px;
    line-height: 1.75;
}
.article-content li { margin-bottom: 6px; }

.article-content strong { color: var(--text); }

.article-content a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.article-content a { text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { text-decoration-thickness: 2px; }

.article-content blockquote {
    border-left: 4px solid var(--blue);
    background: var(--blue-light);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    color: var(--text-mid);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.article-content th {
    background: var(--bg-alt);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--navy);
}
.article-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    color: var(--text-mid);
}
.article-content tr:hover td { background: var(--bg); }

.article-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.article-content pre {
    background: var(--navy);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.6;
}
.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* ── CTA BOX (fim do artigo) ── */
.article-cta {
    background: linear-gradient(135deg, #0a3d5c 0%, #0f5a87 100%);
    border-radius: 12px;
    padding: 40px 44px;
    margin-top: 40px;
    text-align: center;
    color: var(--white);
}
.article-cta h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}
.article-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.article-cta .btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.article-cta .btn-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ── FOOTER (idêntico ao site) ── */
footer {
    background: #08111b;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 36px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-logo img { height: 85px; display: block; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--white); }

.footer-whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: var(--white) !important;
    font-size: 12px !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background 0.15s !important;
}
.footer-whatsapp:hover { background: #1da851 !important; }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.55); }

/* ── RESPONSIVE ── */

/* ── CATEGORIAS ── */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--border);
    color: var(--text-mid); font-size: 13px; font-weight: 600;
    padding: 7px 14px; border-radius: 20px; text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cat-chip:hover { border-color: var(--blue); color: var(--blue); }
.cat-chip .cat-count {
    background: var(--bg-alt); color: var(--text-light);
    font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px;
}
.cat-chip.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.cat-chip.active .cat-count { background: rgba(255,255,255,0.22); color: var(--white); }
a.article-tag { text-decoration: none; }
a.article-tag:hover { background: var(--blue); color: var(--white); }
.cat-box { margin-top: 32px; }
.cat-box h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }

@media (max-width: 900px) {
    .nav-link { display: none; }
    .article-header { padding: 100px 24px 36px; }
    .article-body { padding: 0 24px 48px; }
    .article-content { padding: 32px 28px; }
    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
    nav { height: 60px; padding: 0 16px; }
    .nav-logo-bg img { height: 34px; }
    .nav-links { gap: 14px; }
    .nav-login { padding: 8px 2px; font-size: 13.5px; }
    .nav-cta { padding: 9px 14px; font-size: 13px; box-shadow: none; }
    .nav-cta-full { display: none; }
    .nav-cta-short { display: inline; }
    .article-header { padding: 84px 18px 28px; }
    .article-header h1 { font-size: 26px; letter-spacing: -0.8px; }
    .article-body { padding: 0 18px 40px; }
    .article-content { padding: 24px 20px; }
    .article-content h2 { font-size: 20px; }
    .article-content h3 { font-size: 17px; }
    .article-cta { padding: 28px 22px; }
    .article-cta h3 { font-size: 19px; }
    footer { padding: 28px 20px; }
}

@media print {
    nav, footer, .article-cta { display: none; }
    .article-content { box-shadow: none; border: none; padding: 0; }
    body { background: white; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
    

/* ── LISTAGEM (index.html) ── */
.blog-header {
    padding: 108px 60px 48px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.blog-header h1 {
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
}
.blog-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}
.blog-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 60px 72px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}
.post-card:hover {
    border-color: var(--blue-border);
    box-shadow: 0 4px 16px rgba(5,137,211,0.1);
    transform: translateY(-2px);
}
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.post-card-tag {
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-card-date {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.post-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.3;
}
.post-card:hover h2 {
    color: var(--blue-dark);
}
.post-card p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}
.post-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}
.post-card:hover .post-card-arrow {
    gap: 10px;
}
.blog-cta {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 60px 72px;
}
.blog-cta-box {
    background: linear-gradient(135deg, #0a3d5c 0%, #0f5a87 100%);
    border-radius: 12px;
    padding: 48px 52px;
    text-align: center;
    color: var(--white);
}
.blog-cta-box h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}
.blog-cta-box p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.blog-cta-box .btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.blog-cta-box .btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cat-nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 60px 28px;
}
.cat-nav .cat-chips {
    justify-content: center;
}
.blog-empty {
    text-align: center;
    color: var(--text-light);
    padding: 24px 0;
}

@media (max-width: 900px) {
    .blog-header {
        padding: 100px 24px 36px;
    }
    .blog-grid {
        padding: 0 24px 56px;
    }
    .cat-nav {
        padding: 0 24px 24px;
    }
    .blog-cta {
        padding: 0 24px 56px;
    }
}
@media (max-width: 600px) {
    .blog-header {
        padding: 84px 18px 28px;
    }
    .blog-header h1 {
        font-size: 28px;
    }
    .blog-grid {
        padding: 0 18px 48px;
        gap: 18px;
    }
    .cat-nav {
        padding: 0 18px 20px;
    }
    .post-card {
        padding: 24px 22px;
    }
    .post-card h2 {
        font-size: 19px;
    }
    .blog-cta {
        padding: 0 18px 48px;
    }
    .blog-cta-box {
        padding: 32px 24px;
    }
    .blog-cta-box h2 {
        font-size: 22px;
    }
}
@media print {
    nav, footer, .blog-cta {
        display: none;
    }
}
