/* ============================================================
   Creator Nikita — Blog Article Stylesheet
   ============================================================ */

/* Article Layout */
.article-header {
  padding: calc(var(--header-height) + 60px) 0 50px;
  text-align: center;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.reading-time-badge {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.3);
  color: #c084fc;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.article-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  max-width: 820px;
  margin: 0 auto 22px;
  line-height: 1.25;
}
.article-header .article-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Article Body */
.article-body {
  display: grid;
  grid-template-columns: 1fr min(720px, 100%) 1fr;
  gap: 0;
  padding-bottom: 80px;
}
.article-body > * { grid-column: 2; }
.article-body > .full-width { grid-column: 1 / -1; }

/* Key Takeaways Card */
.key-takeaways {
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(168,85,247,0.3);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 0 auto 40px;
  width: 100%;
}
.key-takeaways h3 {
  font-size: 1rem;
  color: #c084fc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-takeaways ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.key-takeaways ul li {
  display: flex;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-main);
}
.key-takeaways ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Article prose styles */
.article-content {
  padding: 0 24px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.article-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 52px 0 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  color: #fff;
}
.article-content h3 {
  font-size: 1.15rem;
  margin: 32px 0 14px;
  color: #e2d9f3;
}
.article-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 18px;
}
.article-content strong {
  color: var(--text-main);
  font-weight: 700;
}
.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(168,85,247,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}
.article-content a:hover { text-decoration-color: var(--primary); }
.article-content ul, .article-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
.article-content li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 8px;
  font-size: 1rem;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 44px 0;
}

/* Blockquote / Stat callout */
.stat-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}
.stat-callout p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.5;
}
.stat-callout cite {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-style: normal;
}

/* Step / numbered tip block */
.step-block {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
  transition: border-color var(--transition-fast);
}
.step-block:hover { border-color: var(--border-glow); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* Inline CTA card */
.inline-cta {
  background: linear-gradient(135deg, rgba(168,85,247,0.13), rgba(236,72,153,0.09));
  border: 1px solid rgba(168,85,247,0.35);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 44px 0;
}
.inline-cta h3 { font-size: 1.25rem; margin-bottom: 10px; }
.inline-cta p { color: var(--text-muted); margin-bottom: 22px; font-size: 0.95rem; line-height: 1.65; }
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FAQ section */
.faq-list { margin: 20px 0 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background var(--transition-fast);
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q .faq-icon { flex-shrink: 0; transition: transform var(--transition-fast); font-size: 1.2rem; color: var(--primary); }
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 24px 20px; }

/* Author bio */
.author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 48px 0 0;
}
.author-bio img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(168,85,247,0.5);
}
.author-bio-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.author-bio-text h4 { font-size: 1rem; margin-bottom: 6px; }
.author-bio-text p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 14px; }

/* Sidebar / sticky TOC on large screens */
@media (min-width: 1100px) {
  .article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    align-items: start;
  }
  .toc-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
  }
  .toc-sidebar h4 { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
  .toc-sidebar ol { list-style: none; padding: 0; counter-reset: toc; }
  .toc-sidebar ol li { counter-increment: toc; margin-bottom: 10px; }
  .toc-sidebar ol li a { color: var(--text-muted); font-size: 0.87rem; text-decoration: none; display: flex; gap: 8px; line-height: 1.4; transition: color var(--transition-fast); }
  .toc-sidebar ol li a::before { content: counter(toc)"."; color: var(--primary); font-weight: 700; flex-shrink: 0; }
  .toc-sidebar ol li a:hover { color: #fff; }
}

/* Site footer */

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--text-dim); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--border-glow); }

@media (max-width: 768px) {
  .article-header h1 { font-size: 1.65rem; }
  .article-content { padding: 0 4px; }
  .author-bio { flex-direction: column; }
  .article-layout { display: block; }
  .toc-sidebar { display: none; }
}
