/* ============================================================
   ARTICLE PAGE STYLES
   Páginas individuais de cada artigo do blog
   ============================================================ */

/* ============================================================
   BREADCRUMB / VOLTAR
   ============================================================ */
.article-breadcrumb {
  padding: 28px 0 0;
}
.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--blue-700);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.breadcrumb-link:hover {
  color: var(--blue-900);
  transform: translateX(-3px);
}

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  padding: 32px 0 60px;
  border-bottom: 1px solid var(--line);
}
.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.article-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.article-meta-top .post-cat {
  background: var(--blue-50);
  padding: 5px 14px;
  border-radius: 100px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--blue-900);
  margin: 0 0 24px;
  text-wrap: balance;
}
.article-subtitle {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 36px;
  font-family: var(--serif);
  font-style: italic;
  text-wrap: pretty;
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.author-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--blue-900);
  letter-spacing: -0.01em;
}
.author-role {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.article-share {
  display: flex;
  gap: 8px;
}
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--off-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
  color: var(--blue-700);
}
.share-btn:hover {
  background: var(--blue-700);
  color: var(--off-white);
  border-color: var(--blue-700);
  transform: translateY(-2px);
}
.share-btn svg { width: 16px; height: 16px; }

/* ============================================================
   COVER IMAGE
   ============================================================ */
.article-cover {
  margin: 0 auto 50px;
  max-width: 1100px;
  padding: 0 var(--gutter);
}
.article-cover-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

/* ============================================================
   ARTICLE BODY LAYOUT (Sumário lateral + corpo)
   ============================================================ */
.article-body-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  align-items: start;
}

/* Sumário */
.toc {
  position: sticky;
  top: 110px;
  font-size: 14px;
}
.toc-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lemon-700);
  font-weight: 600;
  margin: 0 0 14px;
}
.toc ul { display: flex; flex-direction: column; gap: 10px; }
.toc a {
  display: block;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--line);
  line-height: 1.4;
  transition: all .25s var(--ease);
  text-wrap: pretty;
}
.toc a:hover { color: var(--blue-700); border-left-color: var(--blue-300); }
.toc a.active {
  color: var(--blue-900);
  border-left-color: var(--lemon-500);
  font-weight: 500;
}

/* Article body content */
.article-body {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 24px;
  text-wrap: pretty;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 0.1em 0.12em 0 0;
  color: var(--blue-700);
  font-weight: 500;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 56px 0 18px;
  scroll-margin-top: 110px;
  text-wrap: balance;
}
.article-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 36px 0 14px;
}
.article-body strong { color: var(--blue-900); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: var(--lemon-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s var(--ease);
}
.article-body a:hover { color: var(--blue-900); }

.article-body ul, .article-body ol {
  margin: 0 0 28px;
  padding-left: 0;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  line-height: 1.65;
}
.article-body ul li::before {
  content: "✶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lemon-700);
  font-size: 14px;
  line-height: 1.85;
}
.article-body ol {
  counter-reset: ol;
}
.article-body ol li {
  counter-increment: ol;
}
.article-body ol li::before {
  content: counter(ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue-700);
  font-size: 17px;
  font-style: italic;
}

/* Pullquote / Destaque */
.article-body blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--lemon-500);
}
.article-body blockquote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--blue-900);
  font-style: italic;
  margin: 0;
  text-wrap: balance;
}

/* Callout / Caixinha de saber */
.callout {
  margin: 40px 0;
  padding: 28px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
}
.callout-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--blue-900);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.callout-title::before {
  content: "ℹ";
  width: 28px; height: 28px;
  background: var(--blue-700);
  color: var(--off-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-style: normal;
}
.callout-title.warning::before { content: "!"; background: var(--lemon-700); }
.callout-title.tip::before { content: "★"; background: var(--lemon-500); color: var(--blue-900); font-size: 13px; }
.callout p { margin: 0; font-size: 16px; color: var(--ink); }

/* Tabela */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.article-body th,
.article-body td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body th {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lemon-700);
  font-weight: 600;
}

/* ============================================================
   AUTHOR BIO
   ============================================================ */
.author-bio {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px var(--gutter);
}
.bio-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
}
.bio-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--off-white);
  border: 3px solid var(--off-white);
  box-shadow: var(--shadow-card);
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lemon-700);
  font-weight: 600;
  margin: 0 0 6px;
}
.bio-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--blue-900);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.bio-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* ============================================================
   CTA AGENDAR
   ============================================================ */
.article-cta {
  background: var(--blue-900);
  color: var(--off-white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 100% 50%, rgba(184, 149, 48, 0.15), transparent 60%);
  pointer-events: none;
}
.article-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.article-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--off-white);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.article-cta h2 em { color: var(--lemon-300); font-style: italic; }
.article-cta p {
  font-size: 17px;
  color: var(--blue-100);
  line-height: 1.55;
  margin: 0 0 32px;
}
.article-cta .btn-primary {
  background: var(--lemon-500);
  color: var(--blue-900);
  font-weight: 600;
  padding: 16px 32px;
}
.article-cta .btn-primary:hover {
  background: var(--lemon-300);
  color: var(--blue-900);
}

/* ============================================================
   POSTS RELACIONADOS
   ============================================================ */
.related-posts {
  padding: 80px 0;
  background: var(--off-white);
  border-top: 1px solid var(--line);
}
.related-posts .section-head { margin-bottom: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .article-body-wrap { grid-template-columns: 1fr; gap: 40px; padding: 30px var(--gutter) 60px; }
  .toc { position: relative; top: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .toc ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; border-left-width: 1px; }
  .related-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .article-hero { padding: 20px 0 40px; }
  .article-author-row { flex-wrap: wrap; gap: 14px; }
  .article-share { width: 100%; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 26px; }
  .article-body h3 { font-size: 20px; }
  .article-body p:first-of-type::first-letter { font-size: 3.4em; }
  .article-body blockquote { padding: 22px 24px; }
  .article-body blockquote p { font-size: 19px; }
  .bio-card { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .bio-avatar { margin: 0 auto; width: 110px; height: 110px; }
  .article-cta { padding: 60px 0; }
  .related-posts { padding: 60px 0; }
}

/* ============================================================
   SVG THUMBNAILS — Arte temática por categoria
   Substitui os [CAPA] placeholders por arte gráfica brand-aligned
   ============================================================ */
.thumb-art {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  position: relative;
  min-height: 220px;
}
.thumb-art svg { width: 100%; height: 100%; display: block; }
.photo-feat.thumb-art { min-height: 360px; aspect-ratio: 16/11; }
.photo-thumb.thumb-art { min-height: 220px; aspect-ratio: 16/10; }
