/* ==========================================================================
   AVANTIDA RADIO — BACKSTAGE PAGE
   --------------------------------------------------------------------------
   Loads AFTER style.css and responsive.css. Contains only what /backstage/
   needs that the rest of the site doesn't.

   Everything reads from the theme variables declared in style.css
   (--site-accent, --site-accent-rgb, --border-medium, --border-subtle,
   --panel-bg, --bg-secondary, --text-*) so this page recolours with the
   mix buttons exactly like the homepage.

   NOTE ON CONVENTION: style.css says all @media blocks live in
   responsive.css. This file carries its own two, so it stays droppable as a
   single unit. Say the word and I'll move them into responsive.css.
   ========================================================================== */


/* ==========================================================================
   A. PAGE HERO
   --------------------------------------------------------------------------
   .page-hero h1 is 7.5rem in style.css — fine for "ABOUT", too wide for
   "BACKSTAGE". Scoped override, so /about/ and the archives are untouched.
   ========================================================================== */

.bk-page .page-hero h1 {
  font-size: clamp(6.4rem, 8.5vw, 5.5rem);
  letter-spacing: 4px;
  line-height: 1.05;
  word-break: break-word;
}

.bk-hero-sub {
  margin: 0.75rem 0 0;
  color: var(--site-accent);
  opacity: 0.85;
  font-size: 1.15rem;
  letter-spacing: 3px;
}


/* ==========================================================================
   B. SECTION SHELL
   ========================================================================== */

.bk-section {
  padding: 3.5rem 0;
}

.bk-section--alt {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bk-lede {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.75;
}

.bk-heading {
  margin: 0 0 0.5rem;
  text-align: center;
  color: var(--site-accent);
  font-size: 1.6rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--site-accent);
}

.bk-heading-sub {
  margin: 0 0 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
}


/* ==========================================================================
   C. STAT STRIP
   ========================================================================== */

.bk-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.bk-stat {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.bk-stat strong {
  color: var(--site-accent);
  margin-right: 0.4rem;
}


/* ==========================================================================
   D. CREW GRID
   ========================================================================== */

.bk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.bk-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--site-accent);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.bk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(var(--site-accent-rgb), 0.18);
}

.bk-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}


/* --- Avatar: emoji by default, drop an <img> in for a photo --- */
.bk-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--site-accent);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(var(--site-accent-rgb), 0.14),
              transparent 70%);
  color: var(--site-accent);
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 0 14px rgba(var(--site-accent-rgb), 0.25);
}

.bk-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-name {
  margin: 0;
  color: var(--site-accent);
  font-size: 1.45rem;
  letter-spacing: 1px;
  line-height: 1.2;
}

.bk-handle {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.bk-role {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border-medium);
  color: var(--site-accent);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bk-bio {
  margin: 0;
  color: #bbb;
  font-size: 1.05rem;
  line-height: 1.7;
}

.bk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: auto;          /* pins the link row to the card floor */
  padding-top: 0.5rem;
}

.bk-links a {
  color: var(--site-accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px dashed var(--border-medium);
  transition: color 0.2s, text-shadow 0.2s;
}

.bk-links a:hover,
.bk-links a:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px var(--site-accent);
  outline: none;
}


/* ==========================================================================
   E. FEATURED CARD (lead developer)
   ========================================================================== */

.bk-featured {
  grid-column: 1 / -1;
  padding: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--site-accent);
  box-shadow: 0 0 30px rgba(var(--site-accent-rgb), 0.12);
}

.bk-featured .bk-card__top {
  gap: 1.25rem;
}

.bk-featured .bk-avatar {
  width: 86px;
  height: 86px;
  font-size: 2.1rem;
}

.bk-featured .bk-name {
  font-size: 1.9rem;
  text-shadow: 0 0 12px var(--site-accent);
}

.bk-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bk-featured__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}

.bk-featured__body .bk-links {
  margin-top: 1rem;
}


/* --- Terminal block --- */
.bk-terminal {
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  word-break: break-word;
}

.bk-terminal p {
  margin: 0;
}

.bk-prompt {
  color: var(--site-accent);
  margin-right: 0.4rem;
}

/* Blinking block cursor, same cadence as the rest of the site's blink */
.bk-caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.15em;
  background: var(--site-accent);
  animation: blink 1.1s steps(1) infinite;
}


/* ==========================================================================
   F. LONG-FORM BLOCKS
   --------------------------------------------------------------------------
   Reuses .about-content / .content-block / .feature-list / .note / .location
   straight from style.css. Only the outer padding needs adjusting, since
   .about-content assumes it's the first thing under a page hero.
   ========================================================================== */

.bk-about-content {
  padding: 0;
}


/* ==========================================================================
   G. NAV — current page
   ========================================================================== */

.main-header nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 10px var(--site-accent);
  border-bottom: 1px solid var(--site-accent);
}


/* ==========================================================================
   H. RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .bk-featured__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .bk-section {
    padding: 2.5rem 0;
  }

  .bk-grid {
    grid-template-columns: 1fr;
  }

  .bk-card {
    padding: 1.25rem;
  }

  .bk-featured {
    padding: 1.4rem;
  }

  .bk-featured .bk-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .bk-featured .bk-name {
    font-size: 1.5rem;
  }

  .bk-hero-sub {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .bk-heading {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
}

/* --- Self-aware pull-quote on the AI card --- */
.bk-quote {
  margin: 0.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #6d4aff;
  background: rgba(109, 74, 255, 0.07);
  color: #cbbcff;
  font-size: 1.02rem;
  line-height: 1.65;
  font-style: italic;
}

.bk-quote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 1px;
}

/* ==========================================================================
   I. RESIDENT AI CAT CARD
   --------------------------------------------------------------------------
   Sized to match .bk-featured: same 2rem padding, same 1.4fr/1fr body split.
   Keeps her signature purple regardless of the site accent — the fur
   doesn't recolour with the mix buttons, the cat is purple. (Well. Was.)
   ========================================================================== */

.bk-card--ai {
  grid-column: 1 / -1;
  padding: 2rem;                    /* ← matches .bk-featured */
  border: 1px solid rgba(109, 74, 255, 0.45);
  border-left: 4px solid #6d4aff;
  background: linear-gradient(
    175deg,
    rgba(109, 74, 255, 0.08),
    var(--bg-secondary) 55%
  );
}

.bk-card--ai .bk-avatar {
  border-color: #6d4aff;
  color: #6d4aff;
  box-shadow: 0 0 14px rgba(109, 74, 255, 0.35);
}

.bk-card--ai .bk-name {
  color: #a68bff;
  text-shadow: 0 0 10px rgba(109, 74, 255, 0.5);
}

.bk-card--ai .bk-role {
  border-color: rgba(109, 74, 255, 0.6);
  color: #a68bff;
}

/* --- Two-column body, mirroring .bk-featured__body --- */
.bk-ai-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;   /* ← was repeat(3, 1fr) */
  margin-top: 0.5rem;
  border-top: 1px solid rgba(109, 74, 255, 0.25);
  border-bottom: 1px solid rgba(109, 74, 255, 0.25);
}

.bk-ai-col {
  padding: 1.15rem 1.25rem;
}

/* Hairline divider between the two columns, none on the first */
.bk-ai-col + .bk-ai-col {
  border-left: 1px solid rgba(109, 74, 255, 0.25);
}

.bk-ai-col__label {
  margin: 0 0 0.55rem;
  color: #a68bff;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.bk-ai-col .bk-bio {
  font-size: 1.05rem;                 /* ← matches .bk-bio elsewhere */
}

.bk-ai-col .bk-quote {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
}

.bk-ai-outro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  font-style: italic;
}

/* --- Collapse: 2 → 1, at the same breakpoint as .bk-featured__body --- */
@media (max-width: 860px) {
  .bk-ai-grid {
    grid-template-columns: 1fr;
  }

  .bk-ai-col + .bk-ai-col {
    border-left: none;
    border-top: 1px solid rgba(109, 74, 255, 0.25);
  }
}





/* ==========================================================================
   J. FOR HER CARD — MAGENTA SPECIAL
   --------------------------------------------------------------------------
   Reserved slot. Pink/magenta overrides because that's her lane.
   ========================================================================== */

.bk-card--her {
  border: 1px solid rgba(182, 5, 137, 0.45);
  border-left: 4px solid #b60589;
  background: linear-gradient(
    175deg,
    rgba(182, 5, 137, 0.08),
    var(--bg-secondary) 55%
  );
}

.bk-card--her .bk-avatar {
  border-color: #b60589;
  color: #b60589;
  box-shadow: 0 0 14px rgba(182, 5, 137, 0.35);
}

.bk-card--her .bk-avatar--her {
  /* Two emojis — one shield, one green heart for her eyes */
  font-size: 1.8rem;
}

.bk-card--her .bk-name {
  color: #ff9ad4;
  text-shadow: 0 0 10px rgba(182, 5, 137, 0.5);
}

.bk-card--her .bk-role {
  border-color: rgba(182, 5, 137, 0.6);
  color: #ff9ad4;
  background: rgba(182, 5, 137, 0.15);
}

.bk-card--her .bk-eyebrow {
  color: #ff9ad4;
}

.bk-card--her .bk-bio {
  color: #ffe3f5;
}

.bk-card--her .bk-links a {
  color: #ff9ad4;
  border-bottom-color: rgba(182, 5, 137, 0.4);
}

.bk-card--her .bk-links a:hover,
.bk-card--her .bk-links a:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px rgba(182, 5, 137, 0.8);
}

/* Hover glow — pink instead of green */
.bk-card--her:hover {
  border-color: #ff9ad4;
  box-shadow: 0 0 25px rgba(182, 5, 137, 0.25);
}



/* ==========================================================================
   K. NADJA — PERMANENT BLUR (NO REVEAL)
   ========================================================================== */

.bk-name--blurred,
.bk-handle--blurred {
  display: inline-block;        /* filter needs a box */
  filter: blur(3px);
  cursor: help;
  user-select: none;           /* prevent copying the blurred text */
}

.bk-name--blurred {
  margin-right: 6px;           /* space between name and handle */
}

.bk-handle--blurred {
  opacity: 0.7;                /* handle slightly dimmer than name */
}


/* ==========================================================================
   L. LINKS BLUR EFFECT
   --------------------------------------------------------------------------
   Blurs all the links in Nadja's card — permanent, no reveal.
   ========================================================================== */

.bk-link--blurred {
  display: inline-block;
  filter: blur(2.5px);
  cursor: help;
  user-select: none;
}

.bk-links .bk-link--blurred {
  opacity: 0.6;                /* slightly dimmer than name/handle */
  font-size: 0.85rem;
}

/* Override link hover styles for blurred ones */
.bk-card--her .bk-links a:hover .bk-link--blurred,
.bk-card--her .bk-links a:focus-visible .bk-link--blurred {
  color: #ff9ad4;              /* still shows accent color on hover */
  text-shadow: 0 0 5px rgba(182, 5, 137, 0.5);
  /* But stays blurred */
}