/* ════════════════════════════════════════════════
   BLOG STYLES
   Companion to style.css — used by all
   individual blog post pages. Inherits the
   neon green/blue theme from the main CSS.
   ════════════════════════════════════════════════ */
:root {
  --card-glow: 0 8px 32px rgba(0, 245, 160, 0.12);
}

/* ─── BLOG HERO ────────────────────
   Full-width hero with category, date,
   title, and subtitle. Uses a cinematic
   radial glow behind the text.
   ────────────────────────────────── */
.blog-hero {
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 2rem 2.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* cinematic radial accent behind hero */
.blog-hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -15%;
  width: 65%; height: 65%;
  background: radial-gradient(circle, rgba(0,245,160,.05) 0%, transparent 60%);
  pointer-events: none;
  animation: blogPulse 12s ease-in-out infinite alternate;
}

@keyframes blogPulse {
  0%   { transform: scale(.9); opacity: .5; }
  100% { transform: scale(1.1); opacity: 1; }
}

.blog-hero-inner {
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
  animation: blogBlurIn .65s ease both;
}

@keyframes blogBlurIn {
  from { opacity: 0; filter: blur(10px); transform: translateY(16px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.blog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.blog-cat {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  transition: box-shadow .28s;
}

.cat-green {
  color: var(--accent);
  border-color: rgba(0, 245, 160, 0.3);
}
.cat-green:hover { box-shadow: 0 0 10px rgba(0,245,160,.15); }

.cat-blue {
  color: var(--accent2);
  border-color: rgba(0, 180, 245, 0.3);
}
.cat-blue:hover { box-shadow: 0 0 10px rgba(0,180,245,.15); }

.blog-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.blog-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
}

/* ─── BLOG BODY ────────────────────
   Readable article area with proper spacing,
   heading hierarchy, and styled links.
   ────────────────────────────────── */
.blog-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .28s, transform .28s, text-shadow .28s;
  margin-bottom: 2.5rem;
}

.blog-back:hover {
  color: var(--accent);
  transform: translateX(-6px);
  text-shadow: 0 0 10px rgba(0, 245, 160, 0.4);
}

.blog-body h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--text);
  font-weight: 700;
}

.blog-body h3 {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  margin: 1.8rem 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.blog-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}

.blog-body ul,
.blog-body ol {
  margin: 0.6rem 0 1.1rem 1.4rem;
}

.blog-body li {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.blog-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-shadow .28s;
}
.blog-body a:hover {
  text-shadow: 0 0 8px rgba(0,245,160,.25);
}

/* ─── CALLOUTS & QUOTES ─────────────
   Highlighted tip/note boxes with
   left border accent and hover lift.
   ────────────────────────────────── */
.callout {
  padding: 1rem 1.4rem;
  margin: 1.4rem 0;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.8;
  border-radius: 6px;
  transition: box-shadow .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
}

.callout:hover {
  box-shadow: var(--card-glow);
  transform: translateY(-3px);
}

.callout-green {
  background: rgba(0, 245, 160, 0.05);
  border-left: 3px solid var(--accent);
}

.callout-blue {
  background: rgba(0, 180, 245, 0.05);
  border-left: 3px solid var(--accent2);
}

.callout strong {
  color: var(--accent);
}

.callout-blue strong {
  color: var(--accent2);
}

.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.4rem;
  margin: 1.8rem 0;
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  transition: border-color .28s, text-shadow .28s;
}
.pull-quote:hover {
  border-color: var(--accent2);
  text-shadow: 0 0 12px rgba(0,245,160,.12);
}

/* ─── CODE BLOCKS (blog) ────────────
   Styled inline code snippets with
   accent border and glow on hover.
   ────────────────────────────────── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  font-size: 0.76rem;
  color: var(--accent2);
  line-height: 1.7;
  overflow-x: auto;
  margin: 1.1rem 0;
  font-family: "Space Mono", monospace;
  transition: box-shadow .28s cubic-bezier(.4,0,.2,1), border-color .28s;
}

.code-block:hover {
  box-shadow: var(--card-glow);
  border-color: rgba(0,245,160,.25);
}

/* ─── RESPONSIVE: TABLET ───────────── */
@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 1.2rem 2rem;
  }

  .blog-body {
    padding: 2rem 1.2rem 4rem;
  }

  .blog-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  /* Prevent code blocks from breaking layout */
  .code-block {
    font-size: .7rem;
    padding: .8rem 1rem;
  }
}

/* ─── RESPONSIVE: SMALL PHONES ────── */
@media (max-width: 480px) {
  .blog-meta {
    gap: 0.6rem;
  }

  .blog-subtitle {
    font-size: 0.8rem;
  }

  .blog-body h2 {
    font-size: 1.1rem;
  }

  .blog-body p,
  .blog-body li {
    font-size: .78rem;
  }

  .callout {
    padding: .8rem 1rem;
    font-size: .75rem;
  }

  .pull-quote {
    font-size: .9rem;
    padding: .6rem 1rem;
  }
}

/* ─── REDUCED MOTION ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
