/* ─── GRANALEX BLOG BASE CSS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0f1a;
  --surface: #1e293b;
  --surface-deep: #0f172a;
  --border: #334155;
  --border-subtle: #475569;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --blue: #38bdf8;
  --blue-btn: #0284c7;
  --green: #10b981;
  --green-btn: #059669;
  --orange: #fb923c;
  --purple: #a78bfa;
  --red: #f87171;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.7; overflow-x: hidden; }

/* NAV */
nav.topnav { position: sticky; top: 0; z-index: 100; background: rgba(10,15,26,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(51,65,85,0.6); padding: 0 24px; }
.nav-inner { max-width: 1360px; margin: 0 auto; height: 56px; display: flex; align-items: center; gap: 16px; }
.nav-logo { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(135deg,#38bdf8,#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; }
.nav-sep { color: var(--border-subtle); font-size: 18px; }
.nav-blog { font-size: 13px; font-weight: 600; color: var(--green); text-decoration: none; }
.nav-blog:hover { color: #34d399; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-btn { font-size: 13px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; transition: all 0.2s; }
.nav-btn:hover { border-color: var(--blue); color: var(--blue); }
.nav-btn.green { color: var(--green); border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.nav-btn.green:hover { background: rgba(16,185,129,0.18); border-color: var(--green); }

/* ARTICLE HERO */
.artigo-hero { background: linear-gradient(135deg, #060d1a 0%, #0f172a 50%, #0c1e35 100%); padding: 60px 24px 48px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.artigo-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(56,189,248,0.06), transparent), radial-gradient(ellipse 40% 60% at 80% 30%, rgba(16,185,129,0.05), transparent); pointer-events: none; }
.artigo-hero-inner { max-width: 860px; margin: 0 auto; position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.artigo-cat-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25); color: var(--blue); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.artigo-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.artigo-hero .subtitulo { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 28px; max-width: 700px; }
.artigo-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--text-muted); }
.artigo-meta span { display: flex; align-items: center; gap: 5px; }

/* LAYOUT */
.artigo-layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .artigo-layout { grid-template-columns: 1fr; } .artigo-sidebar { order: -1; } }

/* ARTICLE BODY */
.artigo-corpo { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px; }
@media (max-width: 600px) { .artigo-corpo { padding: 28px 20px; } }
.artigo-corpo h2 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 16px; padding-top: 40px; border-top: 1px solid var(--border); }
.artigo-corpo h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.artigo-corpo h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; margin: 28px 0 12px; color: var(--text-soft); }
.artigo-corpo p { font-size: .97rem; color: var(--text-soft); margin-bottom: 18px; line-height: 1.8; }
.artigo-corpo ul, .artigo-corpo ol { padding-left: 24px; margin-bottom: 18px; }
.artigo-corpo li { font-size: .95rem; color: var(--text-soft); margin-bottom: 8px; line-height: 1.7; }
.artigo-corpo strong { color: var(--text); font-weight: 600; }
.artigo-corpo a { color: var(--blue); text-decoration: underline; }

/* CALLOUTS */
.callout { border-radius: 10px; padding: 16px 18px; margin: 20px 0; display: flex; gap: 12px; }
.callout-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout-text { font-size: .9rem; line-height: 1.65; }
.callout-text strong { display: block; margin-bottom: 4px; font-size: .92rem; }
.callout-info { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2); }
.callout-info .callout-text { color: #7dd3fc; }
.callout-warn { background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.2); }
.callout-warn .callout-text { color: #fdba74; }
.callout-tip { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.callout-tip .callout-text { color: #6ee7b7; }
.callout-danger { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); }
.callout-danger .callout-text { color: #fca5a5; }

/* TABLE */
.tabela-wrap { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead { background: var(--surface-deep); }
thead th { padding: 12px 14px; text-align: left; font-weight: 600; font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 12px 14px; color: var(--text-soft); font-size: .88rem; }
tbody td strong { color: var(--text); }
.td-sim { color: #34d399; font-weight: 700; }
.td-nao { color: var(--red); font-weight: 700; }
.td-badge { display: inline-block; background: rgba(56,189,248,0.15); color: var(--blue); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* SIM CARDS */
.sim-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
@media (max-width: 500px) { .sim-cards { grid-template-columns: 1fr; } }
.sim-card { border-radius: 12px; padding: 20px 16px; text-align: center; border: 1px solid var(--border); background: var(--surface-deep); }
.sim-card.best { border-color: var(--green); box-shadow: 0 0 0 2px rgba(16,185,129,0.15); }
.sim-nome { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 10px; }
.sim-valor { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.sim-card.best .sim-valor { color: var(--green); }
.sim-obs { font-size: .72rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.sim-best-badge { display: block; background: var(--green-btn); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 0; border-radius: 6px; margin-top: 10px; }

/* CTA SIMULADOR */
.cta-simulador { background: linear-gradient(135deg, var(--surface-deep), #0c2340); border: 1px solid rgba(56,189,248,0.2); border-radius: 16px; padding: 32px; text-align: center; margin: 36px 0; }
.cta-simulador h3 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.cta-simulador p { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.cta-simulador a { display: inline-block; background: var(--blue-btn); color: #fff; padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .15s, transform .1s; }
.cta-simulador a:hover { background: #0369a1; transform: translateY(-1px); }

/* CONCLUSION BOX */
.conclusao-box { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.2); border-radius: 12px; padding: 24px 28px; margin: 28px 0; }
.conclusao-box h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.conclusao-box ul { padding-left: 20px; }
.conclusao-box li { color: #6ee7b7; font-size: .92rem; margin-bottom: 8px; }
.conclusao-box li strong { color: #a7f3d0; }

/* TAGS */
.artigo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.tag { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-muted); font-size: .73rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; text-decoration: none; transition: all .15s; }
.tag:hover { background: rgba(56,189,248,0.1); border-color: var(--blue); color: var(--blue); }

/* SHARE SECTION */
.share-section { background: var(--surface-deep); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin: 20px 0; }
.share-title { font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 16px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: transform .1s, opacity .15s; }
.share-btn:hover { transform: translateY(-1px); opacity: .9; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.twitter { background: #1d9bf0; color: #fff; }
.share-btn.linkedin { background: #0a66c2; color: #fff; }
.share-btn.copy { background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); }
.share-copied { font-size: .75rem; color: var(--green); margin-left: 8px; opacity: 0; transition: opacity .3s; }
.share-copied.visible { opacity: 1; }

/* COMMENTS SECTION */
.comentarios-section { margin-top: 48px; }
.comentarios-titulo { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; color: var(--text); }
.comentario-form { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.comentario-form label { display: block; font-size: .8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.comentario-form input, .comentario-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-subtle); border-radius: 9px; background: var(--surface-deep); color: var(--text); font-family: 'Inter', sans-serif; font-size: .9rem; transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical; }
.comentario-form input:focus, .comentario-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.comentario-form textarea { min-height: 100px; margin-bottom: 14px; }
.btn-comentar { background: var(--blue-btn); color: #fff; border: none; border-radius: 9px; padding: 11px 24px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif; transition: background .15s, transform .1s; }
.btn-comentar:hover { background: #0369a1; transform: translateY(-1px); }
.comentario-aviso { font-size: .78rem; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }
.comentarios-lista { display: flex; flex-direction: column; gap: 20px; }
.comentario-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.comentario-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comentario-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-blue { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.av-green { background: linear-gradient(135deg, #059669, #34d399); }
.av-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.comentario-info { flex: 1; }
.comentario-nome { font-weight: 600; font-size: .88rem; color: var(--text); }
.comentario-data { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.comentario-texto { font-size: .9rem; color: var(--text-soft); line-height: 1.65; }
.comentario-like { display: flex; align-items: center; gap: 6px; margin-top: 12px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: .78rem; color: var(--text-muted); cursor: pointer; transition: all .15s; font-family: 'Inter', sans-serif; }
.comentario-like:hover, .comentario-like.liked { border-color: var(--red); color: var(--red); background: rgba(248,113,113,0.08); }
.sem-comentarios { text-align: center; padding: 32px; color: var(--text-muted); font-size: .9rem; background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px dashed var(--border); }
.notif-sucesso { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: 9px; padding: 12px 16px; color: #6ee7b7; font-size: .85rem; margin-top: 12px; display: none; }

/* RELATED */
.relacionados { margin-top: 40px; }
.relacionados-titulo { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 500px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-decoration: none; color: inherit; display: flex; gap: 12px; transition: border-color .2s, transform .2s; }
.rel-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.rel-emoji { font-size: 1.6rem; flex-shrink: 0; }
.rel-titulo { font-weight: 600; font-size: .85rem; line-height: 1.4; color: var(--text); margin-bottom: 4px; }
.rel-cat { font-size: .72rem; color: var(--text-muted); }

/* SIDEBAR */
.artigo-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.sidebar-titulo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toc-lista { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-lista a { display: block; font-size: .82rem; color: var(--text-muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent; transition: all .15s; line-height: 1.4; }
.toc-lista a:hover { background: rgba(56,189,248,0.06); color: var(--blue); border-left-color: var(--blue); }
.sidebar-cta { background: linear-gradient(135deg, var(--surface-deep), #0c2340); border: 1px solid rgba(56,189,248,0.2); border-radius: 14px; padding: 22px; text-align: center; }
.sidebar-cta .cta-emoji { font-size: 2rem; margin-bottom: 10px; }
.sidebar-cta h4 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.sidebar-cta p { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.sidebar-cta a { display: block; background: var(--blue-btn); color: #fff; padding: 9px 14px; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.sidebar-cta a:hover { background: #0369a1; }

/* FOOTER */
footer.blog-footer { text-align: center; padding: 32px 24px 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; line-height: 1.8; margin-top: 60px; }
footer.blog-footer a { color: var(--text-muted); text-decoration: none; }
footer.blog-footer a:hover { color: var(--text); }
.footer-logo { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg,#38bdf8,#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 6px; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .5s ease both; }
