/* ==========================================================================
   Blog específico — herda variáveis e padrões do styles.css principal
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-medium);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-medium);
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-light); }
.breadcrumb span { color: var(--primary); font-weight: 600; }

/* Blog hero */
.blog-hero {
  padding: clamp(56px, 8vw, 88px) 0 56px;
  text-align: center;
  background: linear-gradient(180deg, #FCFAFC 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(210,236,209,0.5) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero .container { position: relative; }
.blog-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px auto 20px;
  max-width: 820px;
}
.blog-hero h1 em {
  background: linear-gradient(135deg, var(--primary) 0%, #b04eb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero p {
  font-size: 17px;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* Blog list grid */
.blog-list-section {
  padding: 56px 0 var(--section-pad);
  background: var(--bg-alt);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.blog-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,26,38,0.3) 100%);
}
.blog-card-img.article-img-c1 { background-image: url('../assets/images/hero-principal.webp'); background-position: center 20%; }
.blog-card-img.article-img-c2 { background-image: url('../assets/images/hero-bg.webp'); background-position: 60% center; }
.blog-card-img.article-img-c3 { background-image: url('../assets/images/diferenciais.webp'); background-position: center top; }
.blog-card-img.article-img-c4 { background-image: url('../assets/images/especialidades.webp'); background-position: center; }
.blog-card-img.article-img-c5 { background-image: url('../assets/images/como-funciona.webp'); background-position: center; }
.blog-card-img.article-img-c6 { background-image: url('../assets/images/sobre.webp'); background-position: center top; }

.blog-card-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-card h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.blog-card p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  flex: 1;
}

/* ==========================================================================
   Post individual
   ========================================================================== */

/* Post hero (banner com foto da Dra.) */
.post-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding: 80px 0 56px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.post-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: -2;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,26,38,0.4) 0%, rgba(31,26,38,0.85) 100%);
  z-index: -1;
}
.post-hero .container { position: relative; }
.post-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.post-hero-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.post-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 20px;
  max-width: 880px;
  letter-spacing: -0.015em;
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  align-items: center;
}
.post-hero-meta strong { color: #fff; font-weight: 700; }
.post-hero-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.post-hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }

/* Post body */
.post-body {
  padding: 64px 0;
}
.post-body .container { max-width: 760px; }
.post-body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin: 48px 0 16px;
  letter-spacing: -0.015em;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.post-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.post-body p strong { color: var(--text); font-weight: 700; }
.post-body ul, .post-body ol {
  margin: 0 0 24px 0;
  padding-left: 22px;
}
.post-body li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}
.post-body ul li::marker { color: var(--primary); }
.post-body ol li::marker { color: var(--primary); font-weight: 700; }

.post-body a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(129,31,133,0.3);
  transition: border-color 0.2s ease;
}
.post-body a:hover { border-bottom-color: var(--primary); }

.post-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* Inline CTA */
.post-cta-inline {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #a83eac 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}
.post-cta-inline h3 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.post-cta-inline p {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.post-cta-inline .btn-light { background: #fff; color: var(--primary); }
.post-cta-inline .btn-light:hover { background: var(--accent); }

/* Source citation */
.post-sources {
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.post-sources h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-medium);
  margin: 0 0 14px;
}
.post-sources ul { list-style: none; padding: 0; margin: 0; }
.post-sources li { font-size: 13px; color: var(--text-medium); line-height: 1.6; margin-bottom: 6px; padding-left: 18px; position: relative; }
.post-sources li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--primary);
}

/* Post FAQ */
.post-faq {
  background: var(--bg-alt);
  padding: 64px 0;
}
.post-faq .container { max-width: 760px; }
.post-faq h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.2;
}
.post-faq h2 em {
  background: linear-gradient(135deg, var(--primary) 0%, #b04eb6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Posts relacionados */
.post-related {
  padding: 64px 0;
}
.post-related h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 32px;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Sobre a autora (no post) */
.post-author-bio {
  padding: 56px 0;
  background: var(--bg-alt);
}
.post-author-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.post-author-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-author-info span.label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.post-author-info h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.post-author-info p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}
.post-author-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}
.post-author-info a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .post-author-card { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
  .post-author-img { width: 120px; height: 120px; margin: 0 auto; }
  .post-author-info { align-items: center; }
}

/* Active state na nav */
.nav-menu a.active { color: var(--primary); }
