/* ============================================================
   SOLVEVARE BLOG — ARTICLE DETAIL CSS
   Scoped to .bd-* and .blog-editorial-* prefixes.
   ============================================================ */

:root {
  --detail-bg:     #0d0d0f;
  --detail-panel:  #141416;
  --detail-panel2: #17171b;
  --detail-line:   rgba(255,255,255,.07);
  --detail-muted:  rgba(255,255,255,.5);
  --detail-accent: #5E0ED7;
}

body { background: var(--detail-bg); color: rgba(255,255,255,.88); font-family: Inter, sans-serif; }
body:not(.loading) #site-header.loading-hidden { opacity: 1 !important; visibility: visible !important; }
.site-header.scrolled .nav-container { height: 90px; }
.site-footer { background: var(--detail-bg); border-top: 1px solid var(--detail-line); }

/* ── ARTICLE WRAPPER ── */
.blog-editorial-article {
  background: var(--detail-bg);
}

.blog-editorial-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── ARTICLE HERO ── */
.bd-hero {
  position: relative;
  padding: 72px 0 0;
  background: var(--detail-bg);
  border-bottom: 1px solid var(--detail-line);
  overflow: hidden;
}
.bd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 70% 20%, rgba(94,14,215,.13) 0%, transparent 68%),
    radial-gradient(ellipse 30% 25% at 5% 85%,  rgba(94,14,215,.06) 0%, transparent 60%);
  pointer-events: none;
}
.bd-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 3rem 0 4rem;
}

/* Breadcrumb */
.blog-editorial-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.blog-editorial-breadcrumb a {
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .18s;
}
.blog-editorial-breadcrumb a:hover { color: rgba(255,255,255,.7); }
.blog-editorial-breadcrumb span { color: rgba(255,255,255,.18); }

/* Eyebrow */
.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--detail-accent);
  margin-bottom: 1.25rem;
}
.bl-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--detail-accent);
  border-radius: 2px;
}

/* H1 */
.bd-hero h1,
.blog-editorial-wrap > .bd-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #fff;
  margin: 0 0 1.25rem;
  max-width: 820px;
  text-transform: uppercase;
}

/* Dek */
.blog-editorial-dek {
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 0 1.5rem;
}

/* Meta row */
.blog-editorial-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding-top: 1.5rem;
  border-top: 1px solid var(--detail-line);
}
.blog-editorial-meta span { color: rgba(255,255,255,.15); }
.bd-meta-pill {
  background: rgba(94,14,215,.15);
  border: 1px solid rgba(94,14,215,.3);
  color: rgba(255,255,255,.55);
  padding: .2rem .65rem;
  border-radius: 2px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
}

/* ── ARTICLE BODY ── */
.bd-body {
  padding: 5rem 0 6rem;
}
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 5rem;
  align-items: start;
}

/* ── ARTICLE CONTENT ── */
.blog-editorial-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,.68);
  min-width: 0;
}
.blog-editorial-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 3rem 0 1rem;
  text-transform: uppercase;
}
.blog-editorial-content h2:first-child { margin-top: 0; }
.blog-editorial-content p {
  margin: 0 0 1.5rem;
}
.blog-editorial-content ul {
  padding-left: 0;
  margin: 0 0 1.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.blog-editorial-content li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.65);
  font-size: .98rem;
  line-height: 1.65;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid rgba(94,14,215,.4);
}
.blog-editorial-content li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--detail-accent);
  flex-shrink: 0;
  margin-top: .55rem;
}
.blog-editorial-content blockquote {
  border: 1px solid rgba(94,14,215,.3);
  border-left: 3px solid var(--detail-accent);
  background: rgba(94,14,215,.06);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  font-style: normal;
  letter-spacing: -.01em;
}

/* ── SIDEBAR ── */
.bd-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bd-sidebar-card {
  border: 1px solid var(--detail-line);
  background: var(--detail-panel);
  padding: 1.5rem;
}
.bd-sidebar-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.bd-sidebar-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--detail-line);
}
.bd-sidebar-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.bd-sidebar-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--detail-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7rem 1.25rem;
  border-radius: 3px;
  transition: background .18s, transform .15s;
  width: 100%;
  justify-content: center;
}
.bd-sidebar-cta:hover { background: #7a2ef0; transform: translateY(-1px); }
.bd-sidebar-meta-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.bd-sidebar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bd-sidebar-meta-row:last-child { border-bottom: none; }
.bd-sidebar-meta-row span:first-child {
  color: rgba(255,255,255,.3);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .62rem;
}
.bd-sidebar-meta-row span:last-child {
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

/* ── TAKEAWAY ── */
.blog-editorial-takeaway {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(94,14,215,.25);
  border-left: 3px solid var(--detail-accent);
  background: rgba(94,14,215,.05);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.blog-editorial-takeaway span {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--detail-accent);
}
.blog-editorial-takeaway strong {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
  font-style: italic;
}

/* ── RELATED ARTICLES ── */
.blog-detail-related {
  padding: 4rem 0 0;
  border-top: 1px solid var(--detail-line);
  margin-top: 4rem;
}
.bd-related-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.bd-related-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--detail-line);
}
.blog-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--detail-line);
  border: 1px solid var(--detail-line);
}
.blog-detail-related-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.75rem;
  background: var(--detail-panel);
  text-decoration: none;
  color: inherit;
  border-left: 2px solid transparent;
  transition: background .18s, border-color .18s;
}
.blog-detail-related-card:hover {
  background: var(--detail-panel2);
  border-left-color: var(--detail-accent);
}
.blog-detail-related-card span {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--detail-accent);
}
.blog-detail-related-card strong {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: -.02em;
}
.blog-detail-related-card small {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: auto;
  transition: color .18s;
}
.blog-detail-related-card:hover small { color: var(--detail-accent); }

/* ── BOTTOM CTA ── */
.blog-editorial-cta {
  margin-top: 4rem;
  padding: 3.5rem;
  background: var(--detail-panel);
  border: 1px solid var(--detail-line);
  border-left: 3px solid var(--detail-accent);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-editorial-cta .bd-cta-eyebrow {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--detail-accent);
}
.blog-editorial-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  margin: 0;
  text-transform: uppercase;
}
.blog-editorial-cta p {
  font-size: .92rem;
  color: rgba(255,255,255,.48);
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}
.blog-editorial-cta .btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--detail-accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.75rem;
  border-radius: 3px;
  transition: background .18s, transform .15s;
  align-self: flex-start;
  margin-top: .5rem;
}
.blog-editorial-cta .btn-nav-cta:hover { background: #7a2ef0; transform: translateY(-1px); }

/* ── NOT FOUND ── */
.blog-detail-empty {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 8rem 1.5rem;
  gap: 1rem;
}
.blog-detail-empty h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: #fff;
}
.blog-detail-empty p { color: var(--detail-muted); margin-bottom: 1.25rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .bd-layout { grid-template-columns: 1fr; gap: 3rem; }
  .bd-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .bd-sidebar-card { flex: 1; min-width: 240px; }
}
@media (max-width: 700px) {
  .bd-hero { padding-top: 80px; }
  .bd-hero-inner { padding: 2rem 0 3rem; }
  .bd-body { padding: 3rem 0 4rem; }
  .blog-detail-related-grid { grid-template-columns: 1fr; }
  .blog-editorial-cta { padding: 2rem; }
  .bd-sidebar { flex-direction: column; }
  .blog-editorial-content blockquote { padding: 1.25rem 1.25rem; }
}
@media (max-width: 480px) {
  .blog-editorial-content h2 { font-size: 1.2rem; }
  .blog-editorial-content li { padding: .6rem .75rem; }
}
