/* Scoped to this page via body.blog-page to avoid header/footer conflicts */
.blog-page {
  --purple-900: #1b022c;
  --purple-700: #511a86;
  --purple-500: #7c2de0;
  --purple-300: #c092ff;
  --neon: #c25bff;
  --text: #fefcfe;
  --muted: #e7dbff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);

  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top, #2a0044 0%, #090010 55%, #050007 100%);
  color: var(--text);
  overflow-x: hidden;
}

.blog-page a { color: inherit; }

/* Keep injected header nav links white across all blog pages */
.blog-page header nav ul li a,
.blog-page header nav ul li a:visited {
  color: #fff !important;
}

.blog-page header nav ul li a:hover,
.blog-page header nav ul li a:focus-visible {
  color: rgba(255, 255, 255, 0.85) !important;
}

.blog-main { padding-top: 72px; }

.blog-shell {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Hero */
.blog-hero {
  padding: 72px 0 42px;
  background:
    radial-gradient(circle at 85% 10%, rgba(194, 91, 255, 0.22), transparent 40%),
    linear-gradient(135deg, rgba(10, 0, 30, 0.92), rgba(22, 0, 42, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.blog-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple-300);
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.blog-hero h1 {
  font-family: "Unbounded", cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 12px;
}

.blog-subtitle {
  max-width: 720px;
  color: #f0e6ff;
  opacity: 0.92;
  line-height: 1.7;
}

/* Posts */
.blog-post {
  padding: 46px 0;
  background: transparent;
}

.blog-post--alt {
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 45, 224, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.blog-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.blog-post-grid--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.blog-post-grid--reverse .blog-media { order: 2; }
.blog-post-grid--reverse .blog-content { order: 1; }

.blog-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.blog-media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.55s ease;
}

.blog-media:hover img { transform: scale(1.06); }

.blog-media-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 20%, rgba(194,91,255,0.30), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(124,45,224,0.22), transparent 55%);
  opacity: 0.55;
}

.blog-content {
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.blog-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(194, 91, 255, 0.14);
  border: 1px solid rgba(194, 91, 255, 0.4);
  color: #f3deff;
  margin: 0 0 12px;
}

.blog-content h2 {
  font-family: "Unbounded", cursive;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  margin: 0 0 14px;
}

.blog-content h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
}

.blog-content h4 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  color: #fff;
}

.blog-content p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.78;
}

.blog-content ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.78;
}

.blog-content li { margin: 6px 0; }

.blog-callout {
  margin: 16px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(194, 91, 255, 0.32);
  background: rgba(194, 91, 255, 0.09);
}

.blog-callout strong {
  display: inline-block;
  margin-bottom: 6px;
  color: #fff;
}

.blog-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.blog-faq p { margin-bottom: 10px; }

.blog-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-btn {
  display: inline-block;
  border: 1px solid var(--neon);
  color: var(--neon);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.blog-btn:hover {
  background: var(--neon);
  color: #180029;
  box-shadow: 0 0 18px rgba(194, 91, 255, 0.75);
  transform: translateY(-1px);
}

.blog-btn--ghost {
  border-color: rgba(194, 91, 255, 0.45);
  color: #f3deff;
  background: transparent;
}

.blog-btn--ghost:hover {
  background: rgba(194, 91, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal[data-anim="fade-left"] { transform: translateX(-22px); }
.reveal[data-anim="fade-right"] { transform: translateX(22px); }
.reveal[data-anim="fade-up"] { transform: translateY(18px); }

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Responsive */
@media (max-width: 980px) {
  .blog-post-grid,
  .blog-post-grid--reverse {
    grid-template-columns: 1fr;
  }
  .blog-post-grid--reverse .blog-media,
  .blog-post-grid--reverse .blog-content {
    order: initial;
  }
  .blog-two-col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
  .blog-media img { transition: none; }
  .blog-btn { transition: none; }
}