/* ═══════════════════════════════════════════════════════════
   Article Layout — long-form reading view for /blog/:slug
   Inherits the .seo-page shell (SEOPageLayout.css) for the
   background, particles, header, breadcrumb and footer.
   ═══════════════════════════════════════════════════════════ */

.article-body {
  animation: fadeIn 0.3s ease;
}

/* ── Hero ──────────────────────────────────────────────────── */
.article-hero {
  padding: 20px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
}

.article-category-chip {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-hero-emoji {
  display: block;
  font-size: 44px;
  margin-bottom: 10px;
  animation: heroEmojiPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Byline ────────────────────────────────────────────────── */
.article-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.article-author-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.article-byline-text {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.article-byline-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Prose ─────────────────────────────────────────────────── */
.article-prose {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.article-prose > p {
  margin-bottom: 18px;
}

/* Drop-cap-ish lead paragraph */
.article-prose > p.lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.article-prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 32px 0 12px;
  line-height: 1.3;
}

.article-prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #c7d2fe;
  margin: 24px 0 8px;
}

.article-prose a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.article-prose a:hover { color: #c7d2fe; }

.article-prose strong { color: rgba(255, 255, 255, 0.95); font-weight: 700; }
.article-prose em { color: rgba(255, 255, 255, 0.85); }

.article-prose code {
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #c7d2fe;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-prose li {
  line-height: 1.65;
}

.article-prose ul li::marker { color: rgba(99, 102, 241, 0.8); }
.article-prose ol li::marker { color: #a5b4fc; font-weight: 700; }

/* Pull quote / callout */
.article-prose blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(99, 102, 241, 0.06);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

/* Inline highlight box for tips — reuses gold "pro-tips" feel */
.article-callout {
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.07), rgba(249, 115, 22, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.article-callout-title {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 6px;
}
.article-callout p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* ── About-the-author box ──────────────────────────────────── */
.article-author-box {
  display: flex;
  gap: 14px;
  margin: 36px 0 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.article-author-box-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.article-author-box-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.article-author-box-role {
  display: block;
  font-size: 12px;
  color: #a5b4fc;
  margin-bottom: 6px;
}
.article-author-box p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ── Play CTA ──────────────────────────────────────────────── */
.article-cta {
  margin: 32px 0;
  padding: 24px 20px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.article-cta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.article-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  margin-bottom: 16px;
}
.article-cta-btn {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-cta-btn:active { transform: scale(0.96); }

/* ── Related articles ──────────────────────────────────────── */
.article-related {
  margin-top: 32px;
}
.article-related-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.article-related-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  padding-left: 48px;
}
.article-related-card:active { transform: scale(0.98); background: rgba(99, 102, 241, 0.08); }
.article-related-emoji {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 22px;
}
.article-related-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.article-related-cat {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 600px) {
  .article-hero h1 { font-size: 30px; }
  .article-prose { font-size: 16px; }
}
