/* ═══════════════════════════════════════════════════
   blog-post.css — Estilos comuns a todos os artigos
   Incluído em: blog-tabela, blog-lgpd, blog-digitalizacao,
                blog-destruicao (e futuros posts)
   ═══════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb {
  background: linear-gradient(135deg, #f5f4ff 0%, #eef2ff 50%, #f8f0ff 100%);
  border-bottom: none;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:last-child { color: var(--blue); font-weight: 600; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #f5f4ff 0%, #eef2ff 50%, #f8f0ff 100%);
  padding: 2.5rem 0;
  text-align: left;
  display: flex;
  align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 max(5%, 2rem);
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.post-cover {
  width: 38%;
  flex-shrink: 0;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}
.hero h1 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.hero .hero-desc {
  color: var(--gray-500);
  font-size: 0.975rem;
  line-height: 1.75;
  margin: 0;
  max-width: 520px;
}
.post-meta-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.post-meta-hero span {
  color: var(--gray-500);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.post-meta-hero .cat {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
}

/* ── ARTIGO ── */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 52px max(5%, 2rem) 72px;
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.article-body h2 i { color: var(--purple); font-size: 1.1rem; }
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}
.article-body p {
  font-size: 0.975rem;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-body li {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.75;
}
.article-body strong { color: var(--text); }
.article-body a { color: var(--purple) !important; }
.article-body .btn-whats,
.article-body .btn-outline { color: white !important; }

/* ── CAIXAS DE DESTAQUE ── */
.highlight-box {
  background: rgba(124,58,237,0.07);
  border-left: 4px solid var(--purple);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; font-size: 0.93rem; color: var(--text); font-weight: 500; }
.highlight-box.danger {
  background: rgba(239,68,68,0.06);
  border-left-color: #ef4444;
}
.highlight-box.danger p { color: #b91c1c; }

/* ── CTA INLINE ── */
.inline-cta {
  background: linear-gradient(135deg, #1a0a2e, #7C3AED);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  color: white;
}
.inline-cta h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: white; }
.inline-cta p { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.inline-cta .btn-whats { display: inline-flex; }

/* ── NAVEGAÇÃO ENTRE POSTS ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.post-nav a {
  color: var(--purple);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.post-nav a:hover { text-decoration: underline; }

/* ── ARTIGOS RELACIONADOS ── */
.related-posts { background: var(--off-white); padding: 60px 5%; }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.related-header h2 { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.related-header > a {
  color: var(--purple); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 0.3rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.related-card {
  background: white; border-radius: 12px; overflow: hidden;
  text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.related-thumb { height: 180px; overflow: hidden; }
.related-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: saturate(0.85); transition: transform 0.3s;
}
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-body { padding: 1.25rem 1.25rem 1rem; }
.related-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  line-height: 1.45; margin-bottom: 0.75rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem;
}
.related-title i { color: var(--purple); flex-shrink: 0; margin-top: 3px; }
.related-meta { font-size: 0.78rem; color: var(--gray-500); }

/* ── RESPONSIVO ── */
@media (max-width: 860px) {
  .post-cover { width: 42%; }
}
@media (max-width: 768px) {
  .hero { padding: 0; }
  .hero-inner { flex-direction: column; gap: 0; padding: 0; }
  .hero-left { order: 2; padding: 1.5rem 5%; }
  .hero .hero-desc { max-width: 100%; }
  .post-cover { order: 1; width: 100%; height: 240px; border-radius: 0; box-shadow: none; }
  .article-wrap { padding: 36px 5% 56px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .post-meta-hero { gap: 0.5rem; }
}
