/* ============================================================
   ARTIGO — página de leitura real
   Mesma tipografia/paleta/componentes do resto do site (Space
   Grotesk nos títulos, Chakra Petch no corpo, var(--surface)/
   var(--border) nos cards) — o tema (body.theme-artigos, já
   presente no <body>) cuida do fundo/cor.
   ============================================================ */

.progress-track { position: sticky; top: var(--header-h); z-index: 900; height: 3px; background: var(--border); }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

.reader { max-width: 720px; margin: 0 auto; padding: 40px 6% 60px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; margin-bottom: 28px;
}
.back-link:hover { color: var(--accent); }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--accent); display: inline-block; flex-shrink: 0; }

.headline {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(24px, 4.4vw, 38px); line-height: 1.25;
  text-wrap: balance; margin-bottom: 22px;
}

.byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.byline-name { color: #fff; font-weight: 600; }
.byline-sep { opacity: 0.5; }

.xp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 700; padding: 6px 13px; letter-spacing: 0.02em; margin-bottom: 40px;
}

.reader-body p { font-size: 17px; line-height: 1.8; color: #e6e2f5; margin-bottom: 24px; max-width: 66ch; }
.reader-body p b { color: #fff; }

.article-photo { margin: 8px 0 30px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #000; }
.article-photo img { width: 100%; max-height: 420px; object-fit: contain; background: var(--surface); display: block; }
.article-photo figcaption { padding: 8px 12px; font-size: 11px; color: var(--muted); font-style: italic; border-top: 1px solid var(--border); }
.article-photo figcaption span { opacity: 0.75; }

/* ---- oferta embutida ---- */
.affiliate-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; margin: 8px 0 32px;
}
.affiliate-media { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); border-radius: var(--radius); font-size: 22px; }
.affiliate-info { flex: 1; min-width: 0; }
.affiliate-tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.affiliate-info h3 { font-size: 15px; color: #fff; margin-bottom: 3px; font-weight: 700; line-height: 1.3; }
.affiliate-info p { font-size: 12.5px; color: var(--muted); margin: 0; }
.affiliate-cta {
  flex-shrink: 0;
  font-size: 12px;
  padding: 10px 16px; white-space: nowrap;
}

/* ---- leia também ---- */
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.related-heading { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.related-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px;
  gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin;
}
.related-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px; text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.15);
}
.related-tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.related-card h3 { font-size: 14px; line-height: 1.4; color: #fff; font-weight: 700; }

/* ---- próximo artigo, fixo ---- */
.next-pill {
  position: sticky; bottom: 16px; z-index: 800;
  max-width: 680px; margin: 40px auto 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 22px; box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  text-decoration: none; color: inherit;
}
.next-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.next-title { flex: 1; font-size: 13.5px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-arrow { color: var(--accent); font-size: 16px; flex-shrink: 0; }
.next-pill:hover .next-title { color: var(--accent); }

@media (max-width: 560px) {
  .reader { padding: 28px 5% 40px; }
  .affiliate-card { flex-wrap: wrap; }
  .next-pill { margin-left: 12px; margin-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}
