/* ═══════════════════════════════════════════════════════════════
   Blog — Estilos Específicos
   Complementa /style.css (carregar após)
   ═══════════════════════════════════════════════════════════════ */

/* ─── HUB: HERO DO BLOG ─────────────────────────────────────── */
.blog-hero {
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.blog-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 14px;
}
.blog-hero-sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Barra de busca */
.search-wrap { margin-bottom: 28px; }
.search-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 12px 22px;
  width: 100%;
  max-width: 540px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--gold); }
.search-box svg { color: var(--text-light); flex-shrink: 0; }
.search-box input {
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-light); }

/* Abas de categoria */
.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s;
}
.cat-tab:hover { border-color: var(--gold); color: var(--gold); }
.cat-tab.active { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* Grid de artigos (hub) */
.blog-grid-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
}
.hub-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hub-card[hidden] { display: none !important; }

.hub-card-link { display: block; }
.hub-thumb {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
}
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-thumb-placeholder {
  width: 100%;
  height: 190px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
}

.hub-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.hub-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.hub-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.hub-card h2 a { text-decoration: none; color: inherit; }
.hub-card h2 a:hover { color: var(--gold); }

.hub-card p { font-size: 13.5px; color: var(--text-light); line-height: 1.65; flex: 1; margin-bottom: 14px; }

.hub-meta {
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.hub-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  align-self: flex-start;
}
.hub-read-more:hover { text-decoration: underline; }

.no-results {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  padding: 48px 0;
  font-style: italic;
}

/* ─── ARTIGO ─────────────────────────────────────────────────── */
.article-hero {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

.article-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--gold);
  margin-bottom: 14px;
}
.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 800px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* Corpo do artigo */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}

.article-body {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--navy);
  margin: 40px 0 16px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li { margin-bottom: 8px; line-height: 1.7; }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  font-size: 15px;
}

.article-body .legal-ref {
  background: #F0F4FF;
  border: 1px solid #C7D2FE;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #3730A3;
  margin: 20px 0;
}
.article-body .legal-ref strong { display: block; margin-bottom: 4px; }

/* Sumário / TOC */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  position: sticky;
  top: 84px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 14px;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 10px; }
.toc a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  transition: color .2s;
}
.toc a:hover { color: var(--gold); }

/* Disclaimer */
.article-disclaimer {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 48px 0 32px;
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
  font-style: italic;
}

/* Botões de compartilhamento */
.share-section {
  margin: 0 0 56px;
}
.share-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .2s;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.share-facebook { background: #1877F2; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-copy     { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }

/* CTA do artigo */
.article-cta {
  background: var(--navy);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-bottom: 56px;
}
.article-cta p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  margin-bottom: 18px;
  line-height: 1.65;
}
.article-cta .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Artigos relacionados */
.related-section { margin-bottom: 56px; }
.related-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: box-shadow .2s;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card .hub-tag { margin-bottom: 8px; }
.related-card h3 {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
.related-card h3 a { text-decoration: none; color: inherit; }
.related-card h3 a:hover { color: var(--gold); }
.related-card .hub-read-more { font-size: 12.5px; }

/* ─── RESPONSIVO DO BLOG ─────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc { position: static; margin-bottom: 32px; }
}
@media (max-width: 600px) {
  .blog-grid-hub { grid-template-columns: 1fr; }
  .article-cta { padding: 24px; }
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }
}
