/* ==========================================================================
   estilo-artigo.css — Estilo compartilhado das páginas de conteúdo
   Dr. Gustavo Bottene Ribolli — Dermatologia
   ========================================================================== */

:root {
  --bg: #F4EFE7;
  --bg-alt: #EBE4D6;
  --bg-deep: #2A2520;
  --ink: #1C1814;
  --ink-soft: #4A413A;
  --ink-light: #8A7F73;
  --accent: #9B5C3F;
  --accent-deep: #6B3F2A;
  --accent-soft: #D9B8A0;
  --rule: #D4C9B8;
  --white: #FBF8F2;
  --max: 1280px;
  --gutter: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- BARRA DE PROGRESSO DE LEITURA ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200; transition: width 0.1s linear;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 20px 0;
  background: rgba(244, 239, 231, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-size: 20px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark::after {
  content: ''; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-back {
  font-size: 13px; color: var(--ink-light); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.nav-back:hover { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all 0.3s;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 110px 0 0; font-size: 13px; color: var(--ink-light);
}
.breadcrumb a { color: var(--ink-light); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--rule); }

/* ---------- ARTICLE HERO ---------- */
.article-hero {
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.article-hero-inner { max-width: 820px; }
.article-cat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 600; margin-bottom: 24px;
}
.article-cat::before { content: ''; width: 20px; height: 1px; background: var(--accent); }
.article-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 400; color: var(--ink);
  margin-bottom: 28px;
}
.article-hero h1 em {
  font-style: italic; color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.article-lead {
  font-size: 20px; line-height: 1.6; color: var(--ink-soft);
  max-width: 700px; margin-bottom: 36px;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
}
.article-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-light);
}
.article-meta .sep { color: var(--rule); }
.article-meta strong { color: var(--ink-soft); font-weight: 500; }

/* ---------- ILUSTRAÇÃO DE CAPA ---------- */
.article-illustration {
  margin: 40px 0 0; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, #E8DACA 0%, #D9C5AE 60%, #C7AC8E 100%);
  border: 1px solid var(--rule);
}
.article-illustration svg { width: 100%; height: auto; display: block; }

/* ---------- ARTICLE LAYOUT ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  padding: 64px 0 100px;
  align-items: start;
}
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 56px; }
}

/* ---------- ARTICLE BODY ---------- */
.article-body { max-width: 700px; }
.article-body h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400; letter-spacing: -0.02em;
  color: var(--ink); margin: 56px 0 20px;
  line-height: 1.15; scroll-margin-top: 100px;
}
.article-body h2 em {
  font-style: italic; color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-size: 22px; font-weight: 400;
  color: var(--ink); margin: 36px 0 14px;
  letter-spacing: -0.01em;
}
.article-body p {
  font-size: 17px; line-height: 1.75;
  color: var(--ink-soft); margin-bottom: 20px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body a.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.article-body ul li, .article-body ol li {
  font-size: 17px; line-height: 1.7;
  color: var(--ink-soft); padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--rule); position: relative;
}
.article-body ul li::before { content: '—'; color: var(--accent); position: absolute; left: 0; }
.article-body ol { counter-reset: item; }
.article-body ol li::before {
  counter-increment: item; content: counter(item) ".";
  color: var(--accent); font-family: 'Fraunces', serif;
  font-style: italic; font-size: 16px; position: absolute; left: 0;
}

/* ---------- HIGHLIGHT BOX ---------- */
.highlight-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 24px 28px; border-radius: 0 4px 4px 0; margin: 36px 0;
}
.highlight-box p {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-size: 19px; line-height: 1.5;
  color: var(--ink); margin: 0; font-style: italic;
}

/* ---------- QUADRO DE ALERTA / SINAL ---------- */
.alert-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: #FBEEE8; border: 1px solid #E7C3B2;
  border-radius: 6px; padding: 22px 24px; margin: 32px 0;
}
.alert-box .alert-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 22px; font-style: italic;
}
.alert-box strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.alert-box p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- CARD DE PONTOS-CHAVE / TL;DR ---------- */
.key-points {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: 6px; padding: 28px 30px; margin: 8px 0 40px;
}
.key-points .kp-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent); font-weight: 700; margin-bottom: 16px;
}
.key-points ul { margin: 0; }
.key-points ul li {
  border-bottom: 1px solid var(--rule); padding: 10px 0 10px 28px;
  font-size: 15px; color: var(--ink-soft); position: relative; line-height: 1.55;
}
.key-points ul li:last-child { border-bottom: none; }
.key-points ul li::before { content: '✓'; color: var(--accent); font-weight: 700; position: absolute; left: 0; }

/* ---------- MYTH VS FACT ---------- */
.myth-grid { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 36px; }
.myth-item { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 24px; }
.myth-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; margin-bottom: 8px; }
.myth-label.mito { color: #C0392B; }
.myth-label.fato { color: #27AE60; }
.myth-item p { font-size: 15px; margin: 0; color: var(--ink-soft); line-height: 1.5; }

/* ---------- TABELA COMPARATIVA ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; font-size: 15px; }
.compare-table th, .compare-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule);
  color: var(--ink-soft); vertical-align: top;
}
.compare-table th {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 16px;
  color: var(--ink); background: var(--bg-alt);
}
.compare-table tr:hover td { background: rgba(217,184,160,0.12); }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }

/* ---------- ETAPAS / TIMELINE ---------- */
.steps { display: flex; flex-direction: column; gap: 0; margin: 24px 0 36px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.step:last-child { border-bottom: none; }
.step .step-n {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; flex-shrink: 0;
}
.step h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 19px; margin-bottom: 4px; color: var(--ink); }
.step p { font-size: 15px; margin: 0; color: var(--ink-soft); }

/* ---------- ARTICLE CTA ---------- */
.article-cta {
  background: var(--bg-deep); border-radius: 6px; padding: 48px;
  margin-top: 60px; text-align: center; position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(155, 92, 63, 0.2) 0%, transparent 60%);
  pointer-events: none;
}
.article-cta h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400; color: var(--bg);
  margin-bottom: 16px; letter-spacing: -0.02em; font-style: italic;
  position: relative; z-index: 1;
}
.article-cta p {
  font-size: 16px; color: rgba(244, 239, 231, 0.7);
  margin-bottom: 32px; max-width: 460px;
  margin-left: auto; margin-right: auto; line-height: 1.6;
  position: relative; z-index: 1;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366; color: white;
  padding: 16px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.3s;
  position: relative; z-index: 1;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35); }
.btn-cta svg { width: 20px; height: 20px; fill: white; }
.article-cta-note { font-size: 12px; color: rgba(244, 239, 231, 0.4); margin-top: 16px; position: relative; z-index: 1; }

/* ---------- SIDEBAR ---------- */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: 32px; margin-bottom: 24px; }
.sidebar-card h4 {
  font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144;
  font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 20px; letter-spacing: -0.01em;
}
.sidebar-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; }
.btn-whatsapp {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 0.3s; justify-content: center;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: white; }

/* ---------- INSTAGRAM ---------- */
.ig-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; font-size: 13px; color: var(--accent);
  text-decoration: none; font-weight: 600; transition: color 0.3s;
}
.ig-link:hover { color: var(--accent-deep); }
.ig-link svg { width: 16px; height: 16px; fill: currentColor; }
.author-info a { color: var(--accent); text-decoration: none; font-weight: 600; }
.author-info a:hover { text-decoration: underline; }
.ig-band {
  background: linear-gradient(135deg, #9B5C3F, #6B3F2A);
  color: var(--white); border-radius: 8px; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin: 8px 0 0;
}
.ig-band .igb-txt strong { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 400; display: block; }
.ig-band .igb-txt span { font-size: 14px; opacity: 0.85; }
.ig-band a.igb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--accent-deep);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: transform 0.3s;
}
.ig-band a.igb-btn:hover { transform: translateY(-2px); }
.ig-band a.igb-btn svg { width: 18px; height: 18px; fill: currentColor; }

.price-mini { display: flex; align-items: baseline; gap: 6px; margin: -4px 0 16px; }
.price-mini .v { font-family: 'Fraunces', serif; font-size: 30px; color: var(--ink); }
.price-mini .l { font-size: 12px; color: var(--ink-light); }

.toc { list-style: none; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc li:last-child { border-bottom: none; }
.toc a { display: block; padding: 10px 0; font-size: 13px; color: var(--ink-soft); text-decoration: none; transition: color 0.3s; line-height: 1.4; }
.toc a:hover { color: var(--accent); }

.author-card { background: var(--bg-alt); border-radius: 6px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: 'Fraunces', serif; font-style: italic; color: var(--bg); font-size: 20px;
}
.author-info strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.author-info span { font-size: 12px; color: var(--ink-light); line-height: 1.4; display: block; }

/* ---------- ARTIGOS RELACIONADOS ---------- */
.related { background: var(--bg-alt); padding: 80px 0; border-top: 1px solid var(--rule); }
.related-head { margin-bottom: 40px; }
.related-head .eyebrow {
  font-family: 'Manrope', sans-serif; text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.22em; font-weight: 500; color: var(--ink-light);
}
.related-head h2 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144, "SOFT" 30; font-size: clamp(28px, 3.5vw, 42px); font-weight: 400; letter-spacing: -0.02em; margin-top: 12px; }
.related-head h2 em { font-style: italic; color: var(--accent); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 6px;
  padding: 28px; text-decoration: none; color: var(--ink);
  transition: all 0.3s; display: flex; flex-direction: column; gap: 12px; min-height: 180px;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: 0 12px 30px rgba(42,37,32,0.08); }
.related-card .rc-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); font-weight: 700; }
.related-card h3 { font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144; font-size: 20px; font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; }
.related-card .rc-arrow { margin-top: auto; font-family: 'Fraunces', serif; font-style: italic; color: var(--accent); font-size: 20px; }

/* ---------- FOOTER ---------- */
footer { background: var(--bg-deep); color: var(--bg); padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(244, 239, 231, 0.5); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-soft); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  background: #25D366; color: white;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 90; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

@media (max-width: 600px) {
  .article-cta { padding: 36px 24px; }
  .nav-back span { display: none; }
  .article-layout { padding-top: 48px; }
}
