/* ══════════════════════════════════════════════════════════════
   ARTICLE PAGES — Shared CSS for all episodes/articles
   Used by: episodes/*.html
   Loaded via: <link rel="stylesheet" href="../css/article-pages.css" />
══════════════════════════════════════════════════════════════ */

/* ─── Article Hero ─────────────────────────────────────────── */
.article-hero {
  padding: 120px 60px 80px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.article-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}
.article-hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
}
.article-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--white);
}
.article-hero-lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 680px;
  margin-bottom: 40px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--white-dim);
  flex-wrap: wrap;
}
.article-hero-meta .meta-sep { opacity: 0.3; }
.article-hero-meta .meta-tag {
  background: rgba(99,102,241,0.15);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--purple-pale);
}

/* ─── Art Panel (decorative SVG banner) ────────────────────── */
.article-art-panel {
  max-width: 860px;
  margin: 0 auto 80px;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

/* ─── Article Prose ─────────────────────────────────────────── */
.article-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 60px 120px;
  position: relative;
  z-index: 1;
}
.article-prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 64px 0 20px;
  color: var(--white);
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 14px;
  color: var(--purple-pale);
}
.article-prose p {
  font-size: 18px;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 24px;
}
.article-prose p:last-child { margin-bottom: 0; }
.article-prose strong { color: var(--white); font-weight: 600; }
.article-prose em { color: var(--purple-pale); font-style: italic; }
.article-prose a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 3px; }
.article-prose ul, .article-prose ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.article-prose ul li, .article-prose ol li {
  font-size: 18px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}
.article-prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-size: 14px;
  top: 3px;
}
.article-prose ol { counter-reset: prose-counter; }
.article-prose ol li::before {
  content: counter(prose-counter) '.';
  counter-increment: prose-counter;
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  top: 3px;
}
.article-prose mark {
  background: rgba(99,102,241,0.2);
  color: var(--purple-pale);
  border-radius: 3px;
  padding: 1px 5px;
}
.prose-sep {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 56px 0;
  opacity: 0.5;
}

/* ─── Callout Boxes ─────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--purple);
  background: rgba(99,102,241,0.08);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 36px 0;
}
.callout p { margin-bottom: 0; font-size: 17px; font-style: italic; color: #e2e8f0; }
.callout-key { border-left-color: var(--violet-light); background: rgba(167,139,250,0.08); }
.callout-key p { color: var(--white); font-style: normal; }
.callout-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple-light);
  margin-bottom: 10px;
  display: block;
}
.callout-key .callout-label { color: var(--violet-light); }

/* ─── Fact Box (3-stat grid) ────────────────────────────────── */
/* Style A — EP01/02: dark card, gradient number */
.fact-box {
  background: rgba(13,13,38,0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.fact-box-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--purple-light), var(--violet-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
}
.fact-box-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Style B — EP03/04: individual cards with fact-item */
.fact-item {
  background: rgba(13,13,38,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.fact-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.fact-label { font-size: 13px; color: var(--white-dim); line-height: 1.4; }

/* ─── Technique Cards (2-col grid) ──────────────────────────── */
.technique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}
.technique-card {
  background: rgba(13,13,38,0.7);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.technique-card:hover { border-color: rgba(99,102,241,0.35); }
.technique-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}
.technique-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.technique-desc { font-size: 14px; line-height: 1.6; color: var(--white-dim); }

/* ─── Related Episodes ──────────────────────────────────────── */
.article-related {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 60px 120px;
  position: relative;
  z-index: 1;
}
.article-related-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--white-dim);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-related-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ─── Big Audio Player (EP01 only — real podcast) ───────────── */
.big-player {
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}
.big-player-card {
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 28px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(99,102,241,0.1);
}
.big-player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
}
.bp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.25;
}
.bp-meta {
  font-size: 13px;
  color: var(--white-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 28px;
}
.waveform-container {
  position: relative;
  height: 64px;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  padding: 0 4px;
}
.wf-bar {
  flex: 1;
  background: rgba(124,58,237,0.22);
  border-radius: 2px;
  min-height: 3px;
  transition: background 0.05s ease;
}
.wf-bar.played { background: linear-gradient(to top, var(--purple), var(--cyan)); }
.bp-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bp-play-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(99,102,241,0.4);
  flex-shrink: 0;
}
.bp-play-btn:hover { transform: scale(1.1); }
.bp-controls-right { flex: 1; }
.bp-time-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
}
.bp-time-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}
.bp-time-fill::after {
  content: '';
  position: absolute;
  right: -6px; top: -5px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
}
.bp-times {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--white-dim);
}
.bp-speed-btns { display: flex; gap: 8px; margin-left: 8px; }
.speed-btn {
  background: var(--white-faint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--white-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.speed-btn.active, .speed-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: var(--purple);
  color: var(--purple-light);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-hero { padding: 100px 24px 60px; }
  .article-hero-title { font-size: clamp(28px, 8vw, 40px); }
  .article-hero-lead { font-size: 17px; }
  .article-art-panel { padding: 0 24px !important; }
  .article-art-panel > div { height: 140px !important; }
  .article-prose { padding: 0 24px 80px; }
  .article-prose h2 { font-size: 22px; }
  .article-prose p, .article-prose li { font-size: 16px; }
  .fact-box { grid-template-columns: 1fr; gap: 16px; }
  .technique-grid { grid-template-columns: 1fr; }
  .article-related { padding: 0 24px 80px; }
  .article-related-grid { grid-template-columns: 1fr; }
  .big-player { padding: 0 24px; }
  .big-player-card { padding: 28px 24px; }
  .bp-speed-btns { display: none; }
}
