/* ==========================================================================
   Supfit Editorial & Guide Stylesheet (SEO & Readability Optimized)
   Typography: Plus Jakarta Sans | Theme: Apple/Meta Calm Dark Mode
   ========================================================================== */

:root {
  --bg-page: #0d0f12;
  --bg-card: #15181e;
  --bg-card-hover: #1c2028;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(139, 92, 246, 0.3);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand-purple: #8b5cf6;
  --brand-purple-light: #a78bfa;
  --brand-purple-glow: rgba(139, 92, 246, 0.15);
  --brand-cyan: #06b6d4;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-content-width: 780px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 30%),
              var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.75;
  font-size: 17px;
}

/* Nav Header */
.article-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 15, 18, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-back-link:hover {
  color: #fff;
}

.nav-cta-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* Breadcrumbs */
.breadcrumb-bar {
  max-width: var(--max-content-width);
  margin: 28px auto 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  color: var(--brand-purple-light);
}

.breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-dim);
}

/* Main Container */
.article-wrapper {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

/* Article Header */
.article-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 28px;
}

.article-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.12);
  color: var(--brand-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.article-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Content Body Typography */
.article-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 20px;
  color: #cbd5e1;
}

.article-content strong {
  color: #fff;
  font-weight: 600;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: #cbd5e1;
}

.article-content li {
  margin-bottom: 10px;
}

/* Comparison Boxes & Code / Tables */
.comparison-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 20px;
  margin: 28px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  line-height: 1.5;
  overflow-x: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th {
  background: #191c24;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: 14px 16px;
  color: #cbd5e1;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--brand-purple);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #e2e8f0;
}

/* CTA Conversion Card */
.article-conversion-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  padding: 32px;
  margin: 48px 0 32px;
  text-align: center;
}

.conversion-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.conversion-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 22px;
}

.conversion-btn {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.conversion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6);
}

.conversion-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Cluster Internal Links */
.related-guides-section {
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 36px;
}

.related-guides-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-link-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-link-card:hover {
  border-color: var(--brand-purple-light);
  transform: translateY(-2px);
}

.guide-link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.guide-link-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Footer */
.article-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 20px;
  background: #090b0e;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .article-title {
    font-size: 1.85rem;
  }
  .article-wrapper {
    padding: 18px 16px 40px;
  }
  .conversion-btn {
    width: 100%;
  }
}
