/* ============================================================
   NUSANTARA INSIGHT — Article Page Styles
   ============================================================ */

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--accent); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb i { font-size: 12px; }

/* ── Article Wrap ─────────────────────────────────────────── */
.article-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
}

/* ── Article Header ───────────────────────────────────────── */
.article-header { margin-bottom: 24px; }

.article-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 10px 0 14px;
}

.article-deck {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  border-left: 3px solid var(--navy);
  padding-left: 14px;
  margin-bottom: 18px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.author-info { flex: 1; }
.author-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.author-meta { font-size: 12px; color: var(--text-muted); }

.article-actions { display: flex; gap: 8px; }
.action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.action-btn:hover { border-color: var(--navy); color: var(--navy); }
.action-btn i { font-size: 14px; }

/* ── Hero Image ───────────────────────────────────────────── */
.article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.img-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ── Prose ────────────────────────────────────────────────── */
.article-prose {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-prose p { margin-bottom: 18px; }
.article-prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg-page);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-blockquote p {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}
.article-blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--text-muted);
}

/* ── Article Tags ─────────────────────────────────────────── */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Author Box ───────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.author-box-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.author-box-name { font-size: 15px; font-weight: 500; color: var(--text-primary); margin-bottom: 5px; }
.author-box-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── Related Articles ─────────────────────────────────────── */
.related-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-item {
  display: block;
  color: inherit;
  transition: opacity 0.2s;
}
.related-item:hover { opacity: 0.8; }
.related-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.related-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 6px 0 4px;
}
.related-meta { font-size: 11px; color: var(--text-muted); }

/* ── Reading Progress ─────────────────────────────────────── */
.reading-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--navy);
  border-radius: 2px;
  transition: width 0.2s;
}
.progress-label { font-size: 12px; color: var(--text-muted); width: 32px; text-align: right; }

/* ── Table of Contents ────────────────────────────────────── */
.toc { display: flex; flex-direction: column; gap: 0; }
.toc-item {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.toc-item:last-child { border-bottom: none; }
.toc-item:hover, .toc-item.active { color: var(--navy); font-weight: 500; }

/* ── Share Buttons ────────────────────────────────────────── */
.share-list { display: flex; flex-direction: column; gap: 8px; }
.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-align: left;
}
.share-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-pale); }
.share-btn i { font-size: 16px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .article-wrap { padding: 20px 16px; }
  .article-title { font-size: 22px; }
  .article-prose { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .article-byline { flex-wrap: wrap; }
  .article-actions { width: 100%; }
}
