/* =========================================================
   Blog — página de cada post (site/blog/<slug>/)
   Usa a base de ./styles.css (tags, cards, botões) e os tokens de ../../_comum/css/site.css.
   Mobile-first.
   ========================================================= */

.post { padding: 32px 16px 56px; }
.post__topo, .post__capa, .post__corpo { max-width: 760px; margin: 0 auto; }

.migalhas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--fg-dim); }
.migalhas a { color: var(--fg-muted); }
.migalhas a:hover { color: var(--teal); }

.post__tag { display: inline-block; margin-bottom: 16px; }
.post__titulo { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.5px; color: var(--fg-white); }
.post__resumo { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--fg-muted); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--fg-dim); }
.post__leitura { display: inline-flex; align-items: center; gap: 6px; }
.post__leitura svg { width: 16px; height: 16px; }

.post__capa { margin-top: 28px; margin-bottom: 0; }
.post__capa img { width: 100%; height: auto; border-radius: 16px; background: var(--bg-card); }

.post__corpo { margin-top: 32px; }

/* Texto do post (HTML vindo de conteudo/blog/posts.json) */
.post__texto { font-size: 17px; line-height: 1.8; color: var(--fg-muted); overflow-wrap: break-word; }
.post__texto > * { margin: 0; }
.post__texto > * + * { margin-top: 20px; }
.post__texto > h2 { margin-top: 44px; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--fg-white); }
.post__texto > h3 { margin-top: 32px; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--fg); }
.post__texto > h4 { margin-top: 28px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--fg); }
.post__texto > h2:first-child, .post__texto > h3:first-child { margin-top: 0; }
.post__texto > h2 + *, .post__texto > h3 + *, .post__texto > h4 + * { margin-top: 12px; }
.post__texto ul, .post__texto ol { padding-left: 24px; }
.post__texto li + li { margin-top: 8px; }
.post__texto li::marker { color: var(--teal); }
.post__texto strong { color: var(--fg); font-weight: 600; }
.post__texto a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.post__texto a:hover { color: var(--fg); }
.post__texto blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); font-style: italic; color: var(--fg); }

.post__secao-titulo { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--fg-white); margin-bottom: 16px; }

/* Perguntas frequentes */
.post__faq { margin-top: 48px; }
.post__pergunta { border-top: 1px solid rgba(182, 196, 255, 0.15); }
.post__pergunta:last-child { border-bottom: 1px solid rgba(182, 196, 255, 0.15); }
.post__pergunta summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-texto); font-size: 16px; font-weight: 600; color: var(--fg);
}
.post__pergunta summary::-webkit-details-marker { display: none; }
.post__pergunta summary svg { flex: none; width: 20px; height: 20px; color: var(--teal); transition: transform 0.2s ease; }
.post__pergunta[open] summary svg { transform: rotate(45deg); }
.post__pergunta p { padding: 0 0 18px; font-size: 16px; line-height: 1.7; color: var(--fg-muted); }

/* Fontes */
.post__fontes { margin-top: 48px; }
.post__fontes ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.post__fontes li + li { margin-top: 8px; }
.post__fontes a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.post__fontes a:hover { color: var(--teal); }

/* Chamada para a plataforma */
.post__cta {
  margin-top: 48px; padding: 28px 24px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(78, 206, 197, 0.12), rgba(111, 92, 226, 0.12));
  border: 1px solid rgba(78, 206, 197, 0.25);
}
.post__cta-titulo { font-family: var(--font-titulo); font-size: 22px; font-weight: 700; color: var(--fg-white); }
.post__cta-texto { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.post__cta-botao { margin-top: 20px; }

.post__voltar { margin-top: 32px; }
.post__voltar svg { transform: rotate(180deg); }

/* Leia também (usa os .card da página /blog/) */
.leia { padding: 48px 16px 72px; background: var(--bg-alt); }
.leia__conteudo { max-width: 1200px; margin: 0 auto; }
.leia__titulo { font-size: 24px; font-weight: 700; color: var(--fg-white); margin-bottom: 24px; }
.leia__grade { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 768px) {
  .post { padding: 48px 32px 72px; }
  .post__titulo { font-size: 40px; }
  .post__texto > h2 { font-size: 28px; }
  .post__cta { padding: 36px 40px; }
  .leia { padding: 64px 32px 88px; }
  .leia__grade { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .post__titulo { font-size: 46px; }
}
