/* ============================================================
   Blog CLT — Dr. Wladmir Bonadio Filho
   Design system "Sala Secreta" (mesma paleta de bonadio.site)
   ============================================================ */

:root {
  --b1: #4B21A6;
  --b2: #6D28D9;
  --b3: #8B5CF6;
  --b4: #A78BFA;
  --b5: #A78BFA;
  --n1: #E8E6E1;
  --n2: #FFFFFF;
  --n3: rgba(232,230,225,0.62);
  --n4: rgba(232,230,225,0.40);
  --bg: #08080A;
  --accent: #A78BFA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--n1);
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(167, 139, 250, 0.10) 1px, transparent 1px),
    radial-gradient(circle, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 32px 32px, 80px 80px;
  background-position: 0 0, 16px 16px;
}

.font-manrope {
  font-family: 'Playfair Display', serif;
}

a {
  color: var(--b5);
  text-decoration: none;
}

a:hover {
  color: var(--n2);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

/* ===================== TOP BAR ===================== */
.top-banner {
  background: linear-gradient(90deg, var(--b1), var(--b2));
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  position: relative;
  z-index: 30;
}

/* ===================== NAV ===================== */
.blog-nav {
  position: relative;
  z-index: 20;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.blog-brand span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  color: var(--b5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--n3);
}

.blog-nav-links a {
  color: var(--n3);
  transition: color 0.2s ease;
}

.blog-nav-links a:hover {
  color: var(--b5);
}

.nav-cta {
  background: var(--accent);
  color: #0F1014 !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.50);
  color: #0F1014 !important;
}

/* ===================== LAYOUT ===================== */
main {
  position: relative;
  z-index: 10;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===================== HERO / HEADER DO BLOG ===================== */
.blog-hero {
  padding: 48px 0 36px;
  text-align: center;
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.blog-hero h1 span {
  background: linear-gradient(135deg, var(--b5), var(--b3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 15px;
  color: var(--n3);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== GRID DE POSTS ===================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding-bottom: 60px;
}

@media (max-width: 760px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(139,92,246,0.14), rgba(8,8,10,0.4));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.25);
}

.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b5);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
}

.post-card h2, .post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card p {
  font-size: 13.5px;
  color: var(--n3);
  margin-bottom: 18px;
  flex-grow: 1;
}

.post-card .read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--b5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card .read-more:hover {
  color: var(--accent);
}

/* ===================== ARTIGO ===================== */
.article-header {
  padding: 40px 0 24px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--n4);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--n4);
}

.breadcrumb a:hover {
  color: var(--b5);
}

.article-header .post-tag {
  margin-bottom: 18px;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.article-meta {
  font-size: 13px;
  color: var(--n4);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.article-body {
  font-size: 16px;
  color: var(--n1);
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--b5);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body strong {
  color: #fff;
  font-weight: 700;
}

.article-body ul, .article-body ol {
  margin: 0 0 18px 22px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--b3);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--n3);
  font-style: italic;
}

/* ===================== CALLOUT / DESTAQUE ===================== */
.callout {
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(8,8,10,0.5));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 28px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b5);
  margin-bottom: 10px;
}

/* ===================== FAQ ===================== */
.faq-section {
  margin-top: 48px;
}

.faq-item {
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(139,92,246,0.06);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--b5);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--n3);
}

/* ===================== CTA BOX ===================== */
.cta-box {
  background: linear-gradient(135deg, var(--b1), #08080A);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 14px;
  color: var(--n3);
  max-width: 480px;
  margin: 0 auto 22px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0F1014;
  font-weight: 800;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.50);
  color: #0F1014;
}

/* ===================== RELACIONADOS ===================== */
.related-section {
  margin-top: 56px;
}

.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== FOOTER ===================== */
.blog-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 36px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--n4);
  position: relative;
  z-index: 10;
}

.blog-footer a {
  color: var(--n3);
}

.blog-footer a:hover {
  color: var(--b5);
}

.blog-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
