/* ============================================================
   BLOG ARTICLE STYLES — Rank With Mustafa
   (loads on top of style.css for shared tokens/navbar/footer)
============================================================ */

/* Simplified navbar for article pages */
.article-nav { background: rgba(7, 11, 21, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.article-nav .nav-wrap { padding-top: 0; padding-bottom: 0; min-height: 64px; }

/* ---- Article hero ---- */
.article-hero {
  padding: 130px 0 50px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 5% 30%, rgba(124,58,237,0.14), transparent 60%),
    linear-gradient(180deg, #0a0e1a, var(--bg));
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 9px; }

.article-cat {
  display: inline-block; background: var(--primary-dim); border: 1px solid rgba(96,165,250,0.3);
  color: var(--primary-light); padding: 5px 14px; border-radius: 50px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px;
}
.article-title {
  font-family: var(--font-d); font-weight: 800; color: var(--text);
  font-size: clamp(28px, 4.4vw, 46px); line-height: 1.14; letter-spacing: -1px;
  max-width: 880px; margin-bottom: 22px;
}
.article-intro { font-size: 18px; color: var(--text-mid); line-height: 1.7; max-width: 760px; margin-bottom: 26px; }

.article-byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.byline-avatar {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-weight: 800; color: #fff; font-size: 15px;
}
.byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-weight: 700; font-size: 14px; color: var(--text); display: block; }
.byline-meta { font-size: 13px; color: var(--text-dim); }
.byline-meta span { margin: 0 7px; }

/* ---- Featured image ---- */
.article-figure { max-width: 980px; margin: -20px auto 0; padding: 0 28px; position: relative; z-index: 2; }
.article-figure img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5); aspect-ratio: 16/8; object-fit: cover;
}

/* ---- Article body ---- */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 56px 28px 40px; }
.article-body { font-size: 16.5px; line-height: 1.85; color: #c3cdda; }
.article-body > p { margin-bottom: 22px; }
.article-body h2 {
  font-family: var(--font-d); font-weight: 800; color: var(--text);
  font-size: 26px; line-height: 1.25; letter-spacing: -0.5px;
  margin: 44px 0 16px; padding-top: 6px;
}
.article-body h3 {
  font-family: var(--font-d); font-weight: 700; color: var(--text);
  font-size: 20px; margin: 30px 0 12px;
}
.article-body a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #93c5fd; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 22px 4px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; padding-left: 4px; }
.article-body ul li::marker { color: var(--primary); }
.article-body ol li::marker { color: var(--primary-light); font-weight: 700; }

.article-body blockquote {
  margin: 28px 0; padding: 18px 24px; border-left: 3px solid var(--primary);
  background: var(--primary-dim); border-radius: 0 12px 12px 0;
  color: var(--text); font-size: 17px; font-style: italic;
}

/* Callout / key takeaway box */
.callout {
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)), var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 26px; margin: 30px 0;
}
.callout-title { font-family: var(--font-d); font-weight: 700; color: var(--primary-light); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.callout ul { margin-bottom: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--radius); border: 1px solid var(--border); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 540px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cmp-table thead th { background: var(--bg-3); color: var(--text); font-family: var(--font-d); font-weight: 700; font-size: 13.5px; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { color: var(--text); font-weight: 600; }
.cmp-table td { color: var(--text-mid); }

/* ---- Author / CTA box ---- */
.article-cta {
  max-width: 800px; margin: 20px auto 0; padding: 0 28px;
}
.article-cta-inner {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(37,99,235,0.2), transparent 60%),
    linear-gradient(135deg, #111a2e, #0e1626);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 32px; text-align: center;
}
.article-cta-inner h3 { font-family: var(--font-d); font-weight: 800; font-size: 24px; color: var(--text); margin-bottom: 10px; }
.article-cta-inner p { color: var(--text-mid); font-size: 15px; line-height: 1.7; max-width: 520px; margin: 0 auto 22px; }

/* ---- Related posts ---- */
.related { max-width: 1100px; margin: 0 auto; padding: 60px 28px 30px; }
.related h2 { font-family: var(--font-d); font-weight: 800; font-size: 22px; color: var(--text); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 820px) {
  .related-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 23px; }
}
@media (max-width: 600px) {
  .article-hero { padding: 110px 0 40px; }
  .article-figure { margin-top: -10px; }
  .article-wrap { padding: 40px 20px 30px; }
}
