/* ============================================================
   COMPONENTS — cards, pills, buttons, badges
   ------------------------------------------------------------
   reusable across the site. one card pattern, one button
   pattern, one pill pattern. additions get a banner here.
   ============================================================ */


/* ---- CARD — base reusable surface ----------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* inner glow — subtle theme-tinted halo, ties cards to brand */
  box-shadow: inset 0 0 40px rgba(var(--brand-glow-rgb), 0.04);
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--easing),
    transform    var(--dur-base) var(--easing),
    box-shadow   var(--dur-base) var(--easing);
}

/* card lift on hover — only cards, not buttons */
.card:hover {
  border-color: rgba(var(--brand-glow-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 40px rgba(var(--brand-glow-rgb), 0.06),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--easing);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__media-placeholder {
  /* used when no image yet — instrument-panel grid pattern */
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(var(--brand-glow-rgb), 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(var(--brand-glow-rgb), 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.card__blurb {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}


/* ---- STATUS PILL ---------------------------------------- */
/* generic UI — in progress / complete / draft / featured / coming soon */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--live,
.pill--in-progress {
  color: var(--live);
  border-color: rgba(107, 217, 169, 0.3);
  background: rgba(107, 217, 169, 0.06);
}

.pill--complete {
  color: var(--accent);
  border-color: rgba(var(--brand-glow-rgb), 0.3);
  background: rgba(var(--brand-glow-rgb), 0.06);
}

.pill--featured {
  color: var(--orange);
  border-color: rgba(229, 181, 116, 0.3);
  background: var(--orange-soft);
}

.pill--draft,
.pill--coming-soon {
  color: var(--muted);
  border-color: var(--border);
}


/* ---- PARTNER BADGE -------------------------------------- */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--easing);
}

.partner-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.partner-badge__mark {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  /* TODO: replace with real partner logos when supplied */
}


/* ---- BUTTON --------------------------------------------- */
/* industrial control panel: flat bg, defined border, border
   lifts to accent on hover. no transform on buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color        var(--dur-fast) var(--easing),
    border-color var(--dur-fast) var(--easing),
    background   var(--dur-fast) var(--easing);
}

.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--brand-glow-rgb), 0.06);
}

.btn--primary {
  background: rgba(var(--brand-glow-rgb), 0.08);
  border-color: rgba(var(--brand-glow-rgb), 0.4);
  color: var(--accent);
}

.btn--primary:hover {
  background: rgba(var(--brand-glow-rgb), 0.15);
  border-color: var(--accent);
}

.btn__arrow {
  /* mono-style arrow, sits flush with mono type */
  display: inline-block;
  transition: transform var(--dur-fast) var(--easing);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}


/* ---- HERO — home page ----------------------------------- */
.hero {
  padding: var(--space-6) 0 var(--space-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero__eyebrow-bracket {
  opacity: 0.6;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__sub {
  font-size: var(--text-md);
  color: var(--muted);
  max-width: 480px;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.hero__cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(var(--brand-glow-rgb), 0.04), transparent 60%),
    var(--surface);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(var(--brand-glow-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.hero__mark {
  display: block;
  width: 80%;
  aspect-ratio: 1 / 1;
  background-image: var(--logo-mark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* corner brackets — instrument panel framing */
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent);
  opacity: 0.6;
}

.hero__visual::before {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.hero__visual::after {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}


/* ---- PARTNER STRIP -------------------------------------- */
.partner-strip {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
}

.partner-strip__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: var(--space-4);
  border-right: 1px solid var(--border);
}

.partner-strip__list {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}


/* ---- FEATURED PROJECT — large card on home -------------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(var(--brand-glow-rgb), 0.04);
}

@media (max-width: 900px) {
  .featured {
    grid-template-columns: 1fr;
  }
}

.featured__media {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  position: relative;
}

.featured__media .card__media-placeholder {
  position: absolute;
  inset: 0;
}

.featured__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

.featured__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.featured__meta-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}


/* ---- VIDEO CARD — specific extension of .card ----------- */
.card--video .card__media::after {
  /* play indicator overlay */
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text);
  font-size: 32px;
  opacity: 0;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  transition: opacity var(--dur-base) var(--easing);
}

.card--video:hover .card__media::after {
  opacity: 0.9;
}

.card--video .card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text);
  border-radius: var(--radius-sm);
}


/* ---- THEME SWITCHER ------------------------------------- */
/* three swatch buttons, sit in nav footer. active state via
   aria-pressed. each swatch is a literal mini-preview of its
   theme's palette so you can see what you're picking. */
.theme-switcher {
  display: flex;
  gap: var(--space-2);
}

.theme-switcher__option {
  flex: 1;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--easing),
    background   var(--dur-fast) var(--easing);
}

.theme-switcher__option:hover {
  border-color: var(--muted);
}

.theme-switcher__option[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(var(--brand-glow-rgb), 0.08);
}

.theme-switcher__swatch {
  display: block;
  height: 20px;
  border-radius: 2px;
  border: 1px solid var(--border-soft);
}

/* nightsky swatch — black with a single white star dot */
.theme-switcher__swatch--nightsky {
  background:
    radial-gradient(circle at 30% 40%, white 0.5px, transparent 1px),
    radial-gradient(circle at 70% 60%, white 0.5px, transparent 1px),
    #07090C;
}

/* blackout swatch — black with burning amber star */
.theme-switcher__swatch--blackout {
  background:
    radial-gradient(circle at 30% 40%, #FF8024 0.5px, transparent 1px),
    radial-gradient(circle at 70% 60%, white 0.5px, transparent 1px),
    #050507;
}

/* white swatch — clean light with a black dot */
.theme-switcher__swatch--white {
  background:
    radial-gradient(circle at 50% 50%, #0A0A0B 1px, transparent 1.5px),
    #FFFFFF;
}

/* honest placeholder for stub pages — instrument-panel banner
   not lorem ipsum. kurt fills these in. */
.todo-banner {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  background:
    linear-gradient(rgba(var(--brand-glow-rgb), 0.02) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(var(--brand-glow-rgb), 0.02) 1px, transparent 1px) 0 0 / 16px 16px;
}

.todo-banner__label {
  color: var(--orange);
  margin-bottom: var(--space-2);
}
