/* Blog Lucrey — estilo base compartilhado */
:root {
  --teal: #0F766E;
  --teal-dark: #0D5450;
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header.topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
header.topo img { height: 30px; }
header.topo a.voltar { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Container */
main { max-width: 1040px; margin: 0 auto; padding: 40px 20px 60px; }

/* Badge de categoria */
.niche-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-50); color: var(--teal);
  border: 1px solid var(--teal-100); border-radius: 999px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}

/* ===== Índice do blog ===== */
.blog-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: 22px; padding: 46px 40px; margin-bottom: 34px;
  box-shadow: 0 14px 38px rgba(15,118,110,.22);
}
.blog-hero .niche-badge { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); position: relative; }
.blog-hero h1 { color: #fff; font-size: 36px; font-weight: 800; line-height: 1.13; margin-bottom: 12px; max-width: 660px; position: relative; }
.blog-hero p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 600px; position: relative; }
.blog-hero .hero-icon { position: absolute; right: -22px; bottom: -34px; width: 210px; height: 210px; color: #fff; opacity: .12; }

.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent, var(--teal));
  border-radius: 16px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,23,42,.10); text-decoration: none; }
.post-card .cat {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent, var(--teal)); margin-bottom: 10px;
}
.post-card h2 { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.post-card .ler { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent, var(--teal)); }

/* Card de destaque (primeiro, largura total) */
.post-card.destaque { grid-column: 1 / -1; padding: 30px 32px; background: linear-gradient(135deg, #fff, var(--teal-50)); }
.post-card.destaque .destaque-tag {
  display: inline-block; align-self: flex-start; margin-bottom: 12px;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.post-card.destaque h2 { font-size: 26px; max-width: 720px; }
.post-card.destaque p { font-size: 16px; max-width: 720px; flex: none; }

/* ===== Artigo ===== */
.article { max-width: 720px; margin: 0 auto; }

/* Capa gráfica (gradiente + ícone do tema) */
.article-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 20px; padding: 38px 34px; margin-bottom: 22px; color: #fff;
  box-shadow: 0 12px 34px rgba(15,118,110,.20);
}
.article-hero .hero-icon {
  position: absolute; right: -12px; bottom: -20px; width: 160px; height: 160px;
  color: #fff; opacity: .13;
}
.article-hero .cat-badge {
  display: inline-flex; align-items: center; gap: 6px; position: relative;
  background: rgba(255,255,255,.16); color: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.article-hero h1 { color: #fff; font-size: 33px; font-weight: 800; line-height: 1.2; margin: 16px 0 0; max-width: 92%; position: relative; }

.article .meta { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.article h2 { font-size: 24px; font-weight: 800; margin: 36px 0 12px; line-height: 1.25; }
.article h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.article p { margin-bottom: 16px; font-size: 17px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; font-size: 17px; }
.article strong { color: var(--teal); }

.exemplo {
  background: #fff; border-left: 4px solid var(--teal); border-radius: 8px;
  padding: 16px 18px; margin: 20px 0; font-size: 16px; box-shadow: 0 2px 12px rgba(15,23,42,.04);
}
.exemplo .titulo { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.exemplo strong { color: var(--teal); }

/* Variante destaque (fundo teal, texto branco) — usar pra alertas/exemplos negativos */
.exemplo.destaque-teal {
  background: var(--teal);
  border-left: 4px solid var(--teal-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(15,118,110,.22);
}
.exemplo.destaque-teal .titulo { color: rgba(255,255,255,.85); }
.exemplo.destaque-teal strong { color: #fff; }
.exemplo.destaque-teal p { color: #fff; }

/* Aviso de exemplo (logo abaixo de caixas .exemplo que citam R$) */
.exemplo-aviso {
  margin: -10px 0 20px;
  padding: 0 4px;
  font-size: 12px;
  font-style: italic;
  color: #94A3B8;
}

/* Aviso de IA (rodapé do artigo, discreto) */
.ia-aviso {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-style: italic;
  color: #94A3B8;
  text-align: center;
}

/* Diagrama explicativo (barra de composição) */
.diagrama {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; margin: 22px 0; box-shadow: 0 2px 12px rgba(15,23,42,.04);
}
.diagrama .dg-titulo {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.diagrama-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: #E2E8F0; margin-bottom: 16px; }
.diagrama-seg { height: 100%; transition: width .3s ease; }
.diagrama-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.diagrama-item { display: flex; align-items: center; justify-content: space-between; font-size: 14px; gap: 10px; }
.diagrama-item .dg-nome { display: flex; align-items: center; gap: 8px; color: #475569; }
.dg-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.diagrama-item .dg-val { font-weight: 700; color: var(--text); white-space: nowrap; }

/* Diagrama — variante comparação (barras) */
.dg-compare { display: flex; flex-direction: column; gap: 16px; }
.dg-linha .dg-linha-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.dg-linha-top .dg-nome { font-weight: 700; color: var(--text); }
.dg-linha-top .dg-val { font-weight: 700; color: var(--teal); }
.dg-track { height: 14px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.dg-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }

@media (max-width: 640px) { .diagrama-legend { grid-template-columns: 1fr; } }

/* CTA inline (meio do artigo) */
.cta-inline {
  background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 14px;
  padding: 20px 22px; margin: 28px 0; text-align: center;
}
.cta-inline p { font-size: 16px; font-weight: 600; color: #0D6461; margin-bottom: 12px; }
.cta-inline a {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 700;
  font-size: 15px; padding: 11px 24px; border-radius: 10px; text-decoration: none;
}
.cta-inline a:hover { background: var(--teal-dark); text-decoration: none; }

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 18px; padding: 34px 30px; margin: 40px 0 8px; text-align: center; color: #fff;
}
.cta-final h3 { font-size: 23px; font-weight: 800; margin-bottom: 10px; }
.cta-final p { font-size: 15px; opacity: .92; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-final a.btn {
  display: inline-block; background: #fff; color: var(--teal); font-weight: 700;
  font-size: 15px; padding: 13px 28px; border-radius: 12px; text-decoration: none;
}
.cta-final a.btn:hover { background: #f0fdfa; text-decoration: none; }
.cta-final small { display: block; margin-top: 12px; font-size: 12px; opacity: .8; }

/* Artigos relacionados */
.relacionados { max-width: 720px; margin: 40px auto 0; }
.relacionados h3 { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.relacionados a { display: block; padding: 10px 0; border-top: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.relacionados a:last-child { border-bottom: 1px solid var(--border); }

/* Footer rico (espelha a landing) */
footer.rodape { background: #0D1117; color: #64748B; margin-top: 48px; padding: 48px 20px 28px; }
footer.rodape .rodape-inner { max-width: 1040px; margin: 0 auto; }
footer.rodape .rodape-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; margin-bottom: 32px;
}
footer.rodape .rodape-brand img { height: 30px; margin-bottom: 12px; }
footer.rodape .rodape-brand p { font-size: 13px; color: #64748B; line-height: 1.7; max-width: 260px; }
footer.rodape .rodape-brand .grupo { font-size: 12px; color: #475569; margin-top: 10px; }
footer.rodape h4 {
  font-size: 12px; font-weight: 700; color: #94A3B8; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 12px;
}
footer.rodape .rodape-col a {
  display: block; color: #64748B; text-decoration: none; font-size: 13px; margin-bottom: 8px;
}
footer.rodape .rodape-col a:hover { color: #CBD5E1; text-decoration: none; }
footer.rodape .rodape-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 22px; font-size: 12px; color: #475569;
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  footer.rodape .rodape-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .blog-hero { padding: 32px 24px; }
  .blog-hero h1 { font-size: 27px; }
  .post-card.destaque h2 { font-size: 21px; }
  .article-hero { padding: 28px 22px; }
  .article-hero h1 { font-size: 25px; max-width: 100%; }
  .article-hero .hero-icon { width: 120px; height: 120px; }
  .article h2 { font-size: 21px; }
  main { padding: 28px 16px 48px; }
}
