/* ============================================
   ARTICLE ENHANCEMENTS — shared across guide pages
   Loaded after each page's inline <style> so it overrides.
   Enhances the reading experience without touching content.
   ============================================ */

/* ---- Article hero ---- */
.article-hero {
  min-height: 45vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 5rem;
}
.article-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f1f3a 30%, #0a1628 60%, #061020 100%);
}
.article-hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(200,164,94,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(90,158,214,0.05) 0%, transparent 55%);
  animation: auroraShift 18s ease-in-out infinite;
}
.article-hero-content {
  position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
  padding: 6rem 3rem 4rem; text-align: center;
}
.article-hero-cat {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border: 1px solid var(--border); padding: 0.5rem 1.2rem; border-radius: 50px;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.025); backdrop-filter: blur(8px);
  animation: fadeUp 0.8s ease-out;
}
.article-hero-cat-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 8px var(--accent); }
.article-hero-cat span { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.article-hero h1 {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.5px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.article-hero-meta {
  font-size: 0.85rem; color: var(--text-muted); display: flex;
  justify-content: center; gap: 2rem; flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

/* ---- Article layout with TOC ---- */
.article-layout {
  max-width: 1200px; margin: 0 auto; padding: 4rem 3rem 6rem;
  display: grid; grid-template-columns: 220px 1fr; gap: 4rem;
}
.article-toc {
  position: sticky; top: 6rem; align-self: start;
}
.article-toc h4 {
  font-size: 0.7rem; color: var(--accent); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 1rem; font-weight: 600;
}
.article-toc a {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  padding: 0.4rem 0; border-left: 2px solid var(--border);
  padding-left: 1rem; transition: all 0.3s; line-height: 1.4;
  margin-bottom: 0.2rem;
}
.article-toc a:hover {
  color: var(--accent); border-left-color: var(--accent);
  transform: translateX(2px);
}
.article-main { max-width: 760px; }

/* ---- Article body typography ---- */
.article-body p,
.article-main p {
  color: var(--text-muted); font-size: 1rem; line-height: 1.9;
  margin-bottom: 1.5rem;
}
.article-body p.lead,
.article-main p.lead {
  font-size: 1.15rem; color: var(--text); line-height: 1.8;
  border-left: 3px solid var(--accent); padding-left: 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, rgba(200,164,94,0.04), transparent);
}
.article-body h2,
.article-main h2 {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  font-weight: 700; color: var(--text); margin: 3rem 0 1.2rem;
  line-height: 1.3; letter-spacing: -0.3px;
  position: relative; padding-left: 1.2rem;
}
.article-body h2::before,
.article-main h2::before {
  content: ''; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem;
  width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}
.article-body h3,
.article-main h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin: 2rem 0 0.8rem;
}
.article-body ul, .article-body ol,
.article-main ul, .article-main ol {
  margin: 1.2rem 0 1.8rem; padding-left: 0; list-style: none;
}
.article-body li,
.article-main li {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.8;
  padding: 0.5rem 0; padding-left: 1.8rem; position: relative;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s, padding-left 0.3s;
}
.article-body li:last-child,
.article-main li:last-child { border-bottom: none; }
.article-body li:hover,
.article-main li:hover { padding-left: 2rem; background: rgba(200,164,94,0.02); }
.article-body li::before,
.article-main li::before {
  content: '→'; color: var(--accent); position: absolute;
  left: 0; font-weight: 600;
}
.article-body ol, .article-main ol { counter-reset: step; }
.article-body ol li, .article-main ol li { counter-increment: step; }
.article-body ol li::before,
.article-main ol li::before {
  content: counter(step) '.'; color: var(--accent); font-weight: 700;
  font-family: 'Playfair Display', serif; font-size: 1.1rem;
}

/* ---- Highlight box ---- */
.article-highlight,
.article-main .article-highlight {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200,164,94,0.04) 100%);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  margin: 2rem 0 2.5rem;
  transition: var(--transition);
}
.article-highlight:hover,
.article-main .article-highlight:hover {
  border-left-color: var(--accent-light);
  box-shadow: 0 8px 30px rgba(200,164,94,0.08);
}
.article-highlight h3,
.article-main .article-highlight h3 {
  color: var(--accent); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 2px; margin: 0 0 1rem; font-weight: 600;
}
.article-highlight ul, .article-main .article-highlight ul { margin: 0; }
.article-highlight li, .article-main .article-highlight li { border-bottom-color: var(--border); }

/* ---- Comparison table ---- */
.article-comparison {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 2.5rem;
  margin: 2rem 0 2.5rem; overflow-x: auto;
  transition: var(--transition);
}
.article-comparison:hover { border-color: rgba(200,164,94,0.25); }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  text-align: left; font-weight: 600; color: var(--accent);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border); padding: 1rem 0.75rem;
}
.comparison-table td {
  padding: 1rem 0.75rem; border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.6;
  transition: background 0.3s;
}
.comparison-table tr:hover td { background: rgba(200,164,94,0.03); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:first-child {
  font-weight: 600; color: var(--text); width: 35%;
}

/* ---- FAQ ---- */
.faq-item, .article-main .faq-item { margin-bottom: 1.5rem; }
.faq-item h3, .article-main .faq-item h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.5rem;
}
.faq-item p, .article-main .faq-item p { margin-bottom: 0.5rem; }

/* ---- Author box ---- */
.author-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; margin-top: 3rem;
  display: flex; gap: 1.5rem; align-items: start;
  transition: var(--transition);
}
.author-box:hover { border-color: rgba(200,164,94,0.3); box-shadow: var(--shadow-card); }
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(200,164,94,0.15), transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.author-role { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.author-bio { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ---- References ---- */
.article-references {
  margin-top: 2.5rem; padding: 2rem 2.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.article-references h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--text); margin: 0 0 1.2rem;
}
.article-main .article-references ol {
  margin: 0; padding-left: 0; list-style: none; counter-reset: ref;
}
.article-main .article-references ol li {
  counter-increment: ref; color: var(--text-muted); font-size: 0.85rem;
  line-height: 1.7; padding: 0.4rem 0 0.4rem 2rem; position: relative;
  border-bottom: 1px solid var(--border-subtle);
}
.article-main .article-references ol li:last-child { border-bottom: none; }
.article-main .article-references ol li::before {
  content: counter(ref) '.'; color: var(--accent); font-weight: 700;
  position: absolute; left: 0; font-family: inherit; font-size: 0.85rem;
}

/* ---- Article CTA / related links (if present) ---- */
.article-main a, .article-body a {
  color: var(--accent); transition: color 0.3s;
  text-decoration: underline; text-decoration-color: rgba(200,164,94,0.3);
  text-underline-offset: 3px;
}
.article-main a:hover, .article-body a:hover {
  color: var(--accent-light); text-decoration-color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; padding: 3rem 3rem 5rem; }
}
@media (max-width: 768px) {
  .article-hero-content { padding: 5rem 1.5rem 3rem; }
  .article-hero h1 { font-size: 2rem; }
  .article-layout { padding: 2rem 1.5rem 4rem; }
  .article-body, .article-main { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .article-hero-content { padding: 4.5rem 1.25rem 2.5rem; }
  .article-hero h1 { font-size: 1.7rem; }
  .article-layout { padding: 1.5rem 1.25rem 3rem; }
}
