/* ============================================================ */
/* XENTROX v02 — Canonical Blog Post Editorial Stylesheet       */
/* Self-contained dark obsidian design (zero Tailwind CDN)      */
/* ============================================================ */

body.blog-post-page {
  background: var(--bg-base, #03050c);
  color: var(--text-body, #cbd5e1);
}

.blog-post-main {
  padding-top: 104px;
  padding-bottom: 5rem;
}

.blog-post-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Breadcrumb & Back Link */
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #39e0ff;
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.blog-post-back:hover {
  opacity: 0.85;
  transform: translateX(-3px);
}

/* Article Header */
.blog-post-header {
  margin-bottom: 2.25rem;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1rem;
}
.blog-post-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(57, 224, 255, 0.12);
  border: 1px solid rgba(57, 224, 255, 0.35);
  color: #39e0ff;
  font-weight: 600;
}
.blog-post-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, #ffffff 0%, #39e0ff 48%, #ff2fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-post-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

/* Framed Hero Image */
.blog-post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #060916;
  margin-bottom: 2.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.blog-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Editorial Prose */
.blog-article {
  font-size: 1.04rem;
  line-height: 1.82;
  color: rgba(226, 232, 240, 0.88);
}
.blog-article h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 2rem 0 0.75rem;
}
.blog-article p {
  margin: 0 0 1.35rem;
}
.blog-article ul,
.blog-article ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.blog-article li {
  margin-bottom: 0.55rem;
}
.blog-article a {
  color: #39e0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article a:hover {
  color: #ff2fa3;
}
.blog-article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #39e0ff;
  background: rgba(57, 224, 255, 0.06);
  border-radius: 0 14px 14px 0;
  color: #f1f5f9;
  font-style: italic;
}
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 1.75rem 0;
  display: block;
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}
.blog-article th,
.blog-article td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.blog-article th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 700;
}

/* Bottom CTA Card */
.blog-post-cta {
  margin-top: 3.5rem;
  padding: 2.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(57, 224, 255, 0.08), rgba(255, 47, 163, 0.08));
  border: 1px solid rgba(57, 224, 255, 0.25);
  text-align: center;
}
.blog-post-cta h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.65rem;
}
.blog-post-cta p {
  color: rgba(255, 255, 255, 0.74);
  margin: 0 auto 1.4rem;
  max-width: 520px;
}
.blog-post-cta a.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #39e0ff, #ff2fa3);
  color: #03050c;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-post-cta a.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(57, 224, 255, 0.35);
}

/* ============================================================ */
/* READABLE LINK POLISH, BENCHMARK CARDS, RELATED & FAQS        */
/* ============================================================ */
.blog-article section {
  margin-bottom: 2.25rem;
}

/* Crisp off-white links with subtle cyan underline (zero neon wall) */
.blog-article a {
  color: #f1f5f9;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(57, 224, 255, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.blog-article a:hover {
  color: #39e0ff;
  text-decoration-color: #39e0ff;
}

/* Research / Benchmark Callout Boxes */
.blog-article section > div:not(.space-y-4) {
  margin: 1.5rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-article section > div > ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-article section > div > ul li {
  margin: 0;
  font-size: 0.92rem;
}

/* Related Guides Card List */
.blog-related-list {
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  border-radius: 18px;
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid rgba(57, 224, 255, 0.2);
}
.blog-related-list h2 {
  margin-top: 0 !important;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.blog-related-list ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-related-list li {
  margin: 0;
}
.blog-related-list a {
  display: block;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 600;
  color: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.blog-related-list a:hover {
  border-color: rgba(57, 224, 255, 0.45);
  background: rgba(57, 224, 255, 0.08);
  color: #39e0ff;
  transform: translateX(4px);
}

/* Interactive FAQ Accordions (#faqs) */
#faqs {
  margin-top: 3.5rem;
}
#faqs .space-y-4 {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.blog-article details {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 1.4rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.blog-article details:hover,
.blog-article details[open] {
  border-color: rgba(57, 224, 255, 0.35);
  background: rgba(57, 224, 255, 0.04);
}
.blog-article summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.blog-article summary::-webkit-details-marker {
  display: none;
}
.blog-article summary::after {
  content: '+';
  font-family: var(--font-mono, 'Fira Code', monospace);
  font-size: 1.2rem;
  color: #39e0ff;
  flex-shrink: 0;
}
.blog-article details[open] summary::after {
  content: '−';
  color: #ff2fa3;
}
.blog-article details p {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.82);
}

@media (max-width: 700px) {
  .blog-article section > div > ul {
    grid-template-columns: 1fr;
  }
}
