/* Blog público — usa as variáveis de landing-v3.css (--blue, --navy, --cream,
   --paper, --ink, --muted, --line). Carregado depois dela. */

.blog-body { background: var(--paper); }
.blog-body main > .nav { position: relative; background: var(--navy); }

/* ── Hero da listagem ─────────────────────────────────── */
.blog-hero { padding: 120px 6vw 60px; max-width: 900px; }
.blog-hero > span { font-size: .72rem; letter-spacing: .18em; color: var(--blue); font-weight: 700; }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; margin: 18px 0 20px; font-weight: 800; letter-spacing: -.02em; }
.blog-hero h1 em { font-style: normal; color: var(--blue); }
.blog-hero p { font-size: 1.05rem; color: var(--muted); max-width: 620px; line-height: 1.7; margin: 0; }

/* ── Filtros ──────────────────────────────────────────── */
.blog-filtros { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 6vw 40px; }
.blog-filtros a {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; transition: .2s;
}
.blog-filtros a:hover { border-color: var(--blue); color: var(--blue); }
.blog-filtros a.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Grid de cards ────────────────────────────────────── */
.blog-lista { padding: 0 6vw 100px; }
.blog-vazio { color: var(--muted); font-size: 1rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; color: inherit;
  border-bottom: 1px solid var(--line); padding-bottom: 22px; transition: .25s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.post-cat { font-size: .68rem; letter-spacing: .14em; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.post-card h2, .post-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.post-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; margin: 0; }
.post-card time { font-size: .75rem; color: var(--muted); }

/* ── Artigo ───────────────────────────────────────────── */
.post { max-width: 760px; margin: 0 auto; padding: 120px 6vw 90px; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 6px; opacity: .5; }

.post-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.post-resumo { font-size: 1.15rem; line-height: 1.65; color: var(--muted); margin: 0 0 24px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); padding-bottom: 30px; border-bottom: 1px solid var(--line); }

.post-capa { width: 100%; border-radius: 12px; margin: 36px 0; }

/* Tipografia do corpo — o conteúdo vem do editor, então estilo por tag. */
.post-corpo { font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.post-corpo p { margin: 0 0 1.4em; }
.post-corpo h2 { font-size: 1.7rem; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; margin: 2.2em 0 .7em; }
.post-corpo h3 { font-size: 1.28rem; line-height: 1.3; font-weight: 700; margin: 1.8em 0 .6em; }
.post-corpo ul, .post-corpo ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.post-corpo li { margin-bottom: .5em; }
.post-corpo a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-corpo blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--blue); color: var(--muted); font-size: 1.1rem; font-style: italic;
}
.post-corpo img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.6em 0; }
.post-corpo table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.post-corpo th, .post-corpo td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-corpo th { background: var(--cream); font-weight: 700; }
.post-corpo hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-corpo code { background: var(--cream); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ── CTA no fim do artigo ─────────────────────────────── */
.post-cta { background: var(--navy); color: #fff; border-radius: 14px; padding: 42px 38px; margin: 60px 0; }
.post-cta > span { font-size: .68rem; letter-spacing: .2em; font-weight: 700; color: rgba(255,255,255,.55); }
.post-cta h2 { font-size: 1.55rem; line-height: 1.25; font-weight: 800; margin: 12px 0 10px; letter-spacing: -.015em; }
.post-cta p { color: rgba(255,255,255,.72); font-size: .95rem; margin: 0 0 24px; }
.post-cta a {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .92rem;
  padding: 14px 30px; border-radius: 999px; transition: .2s;
}
.post-cta a:hover { filter: brightness(1.12); }

/* ── Relacionados ─────────────────────────────────────── */
.post-relacionados { border-top: 1px solid var(--line); padding-top: 44px; }
.post-relacionados > h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 28px; }
.post-relacionados .post-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }

@media (max-width: 640px) {
  .blog-hero { padding-top: 100px; }
  .post { padding-top: 100px; }
  .post-cta { padding: 32px 24px; }
}

/* ── Vídeo, galeria e tags do artigo ──────────────────── */
.post-video { position: relative; padding-top: 56.25%; margin: 2.4em 0; border-radius: 12px; overflow: hidden; background: var(--navy); }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 2.4em 0; }
.post-galeria figure { margin: 0; }
.post-galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.post-galeria figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.4em 0 0; }
.post-tags span {
  font-size: .74rem; color: var(--muted); background: var(--cream);
  border-radius: 999px; padding: 6px 14px;
}

/* ── Compartilhar ─────────────────────────────────────── */
.post-share { border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 28px; }
.post-share > span { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.share-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.share-botoes a, .share-botoes button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; transition: .2s;
}
.share-botoes a:hover, .share-botoes button:hover {
  border-color: var(--navy); background: var(--navy); color: #fff;
}
.share-botoes svg {
  width: 17px; height: 17px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.share-botoes button[hidden] { display: none; }

@media (max-width: 480px) {
  .share-botoes a span, .share-botoes button span { display: none; }
  .share-botoes a, .share-botoes button { padding: 12px; }
  .share-botoes #shareCopiar span { display: inline; }
}
