/* =====================================================================
   FIGHTER STAT PAGE (fighter.html). Loaded after styles.css.
   The TSL "noir" look (thestoiclight.com noir.css): Cormorant Garamond
   headings, small spaced Inter capitals, square corners, hairline rules,
   no glow. Colour is only blood red on black and white (v14: the dark green became charcoal).
   ===================================================================== */

body.fs {
  --fs-black: #000;
  --fs-panel: #050505;
  --fs-white: #f2efe9;
  --fs-soft: #b9b4ab;
  --fs-green: #1c1c1c; /* v14 noir: was dark green; now charcoal fills and frames */
  --fs-green-ink: #d9d9d9; /* v14 noir: was green text; now soft white */
  --fs-red: #7a0a0a; /* blood red: fills and frames */
  --fs-red-ink: #c21a1a; /* blood red, light enough to read as text */
  --fs-serif: "Cormorant Garamond", Georgia, serif;
  --fs-sans: "Inter", system-ui, sans-serif;

  background: var(--fs-black);
  /* The blood-red side bleed comes from styles.css (body::before). */
  background-image: none;
  color: var(--fs-white);
  font-family: var(--fs-sans);
  font-weight: 300;
  padding: 28px 16px 48px;
}
body.fs ::selection { background: var(--fs-red); color: var(--fs-white); }
body.fs :focus-visible { outline: 1px solid var(--fs-white); outline-offset: 4px; }

/* ---------- small capitals (TSL eyebrow) ---------- */
.fs-eyebrow,
.fs-label,
body.fs label {
  font-family: var(--fs-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fs-soft);
}
.fs-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--fs-red-ink); margin: 0 0 14px; }
.fs-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--fs-red-ink); flex: none; }

/* ---------- wordmark ---------- */
body.fs .brand {
  font-family: var(--fs-serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  color: var(--fs-white);
  margin-bottom: 28px;
}

/* minmax(0, 1fr): without it the one column grows to its widest content and
   the page comes out wider than a phone (the v14 fix, lost in v15; back in v24). */
.fs-page { width: 100%; max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.fs-panel { min-width: 0; }

/* ---------- panels: black, hairline frame, square ---------- */
.fs-panel {
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(242, 239, 233, 0.16);
  padding: clamp(20px, 4vw, 40px);
}
.fs-panel h2 {
  font-family: var(--fs-serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: 0.01em;
  margin: 0 0 18px;
}

/* ---------- hero: main photo + stat sheet ---------- */
.fs-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.fs-photo-frame {
  position: relative;
  /* Dark glow behind the photo (v14: was green) (offset down-right, all blur: no hard edge anywhere), red hairline on it. */
  box-shadow: 16px 16px 44px 6px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--fs-red);
  margin: 0 14px 14px 0;
  background: var(--fs-panel);
}
.fs-photo-frame img,
.fs-photo-frame .fs-photo-empty {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.fs-photo-empty { display: grid !important; place-items: center; color: var(--fs-soft); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; }

.fs-sheet { min-width: 0; }
.fs-sheet-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; }
.fs-name {
  font-family: var(--fs-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
  overflow-wrap: anywhere;
}
.fs-team { margin: 10px 0 0; font-family: var(--fs-serif); font-style: italic; font-size: 1.15rem; color: var(--fs-soft); }
.fs-home { margin: 6px 0 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fs-green-ink); }
.fs-logo { width: clamp(72px, 12vw, 112px); height: clamp(72px, 12vw, 112px); object-fit: contain; flex: none; }

/* Record: won in white, lost in red. */
.fs-record {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 26px 0 8px;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
  border-bottom: 1px solid rgba(242, 239, 233, 0.16);
  padding: 16px 0;
}
.fs-record-side { text-align: center; }
.fs-record-num { display: block; font-family: var(--fs-serif); font-weight: 300; font-variant-numeric: lining-nums tabular-nums; font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1; }
.fs-won .fs-record-num { color: var(--fs-green-ink); }
.fs-lost .fs-record-num { color: var(--fs-red-ink); }
.fs-record-side .fs-label { display: block; margin-top: 8px; }
.fs-record-dash { width: 1px; align-self: stretch; background: rgba(242, 239, 233, 0.16); }

/* Stat rows: label left, value right, hairline between. */
.fs-stats { margin: 8px 0 0; padding: 0; }
.fs-stat {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) minmax(0, 3fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.12);
}
.fs-stat dt { margin: 0; }
.fs-stat dd { margin: 0; font-family: var(--fs-serif); font-variant-numeric: lining-nums; font-size: 1.35rem; font-weight: 400; overflow-wrap: anywhere; }

.fs-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-style-tag {
  font-family: var(--fs-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--fs-green-ink);
  color: var(--fs-white);
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 12px;
}

/* ---------- gallery: up to 5, one large + four small ---------- */
.fs-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 17vw, 190px); gap: 10px; }
.fs-gallery .fs-shot { grid-column: span 1; grid-row: span 1; }
.fs-gallery .fs-shot:first-child { grid-column: span 2; grid-row: span 2; }
.fs-gallery[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
.fs-gallery[data-count="1"] .fs-shot:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.fs-gallery[data-count="2"] .fs-shot:nth-child(2),
.fs-gallery[data-count="3"] .fs-shot:nth-child(n + 2) { grid-column: span 2; }
.fs-gallery[data-count="2"] .fs-shot:nth-child(2) { grid-row: span 2; }
.fs-shot {
  position: relative;
  margin: 0;
  padding: 0;
  width: 100%;
  border: 1px solid rgba(242, 239, 233, 0.14);
  border-radius: 0;
  background: var(--fs-panel);
  overflow: hidden;
  cursor: zoom-in;
}
.fs-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.fs-shot:hover { background: var(--fs-panel); border-color: var(--fs-red); }
.fs-shot:hover img { transform: scale(1.04); }
.fs-shot .fs-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  font-family: var(--fs-serif); font-style: italic; font-size: 0.95rem; color: var(--fs-white); text-align: left;
}

/* ---------- about / links ---------- */
.fs-bio { white-space: pre-line; font-size: 1.02rem; line-height: 1.75; margin: 0; max-width: 68ch; }
body.fs .link-tree a {
  border-radius: 0 !important;
  border: 1px solid rgba(242, 239, 233, 0.4) !important;
  background: transparent !important;
  color: var(--fs-white) !important;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
body.fs .link-tree a:hover { background: var(--fs-red) !important; border-color: var(--fs-red) !important; }

/* ---------- buttons: hairline, square, small capitals ---------- */
body.fs button {
  font-family: var(--fs-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid var(--fs-red);
  background: var(--fs-red);
  color: var(--fs-white);
  padding: 15px 30px;
  transition: background 0.3s ease, color 0.3s ease;
}
body.fs button:hover { background: transparent; color: var(--fs-white); }
body.fs button.secondary { background: transparent; border-color: rgba(242, 239, 233, 0.4); }
body.fs button.secondary:hover { border-color: var(--fs-white); }
body.fs .fs-shot { padding: 0; letter-spacing: normal; text-transform: none; background: var(--fs-panel); border-color: rgba(242, 239, 233, 0.14); }
body.fs .fs-shot:hover { border-color: var(--fs-red); }

/* ---------- fan wall form: underlined fields, like a printed form ---------- */
body.fs input,
body.fs textarea {
  background: transparent;
  color: var(--fs-white);
  border: none;
  border-bottom: 1px solid rgba(242, 239, 233, 0.5);
  border-radius: 0;
  font-family: var(--fs-sans);
  font-weight: 300;
  font-size: 0.95rem;
  padding: 12px 2px;
}
body.fs textarea { border: 1px solid rgba(242, 239, 233, 0.5); padding: 12px; min-height: 110px; }
body.fs input:focus,
body.fs textarea:focus { border-color: var(--fs-green-ink); }
body.fs input::placeholder,
body.fs textarea::placeholder { color: var(--fs-soft); opacity: 0.6; }
body.fs .subtitle,
body.fs .hint,
body.fs .empty-hint { color: var(--fs-soft); }
body.fs .fan-message { border-color: rgba(242, 239, 233, 0.12); border-radius: 0; background: transparent; }
body.fs .fan-author { font-family: var(--fs-serif); font-size: 1.1rem; font-weight: 500; }
body.fs .fan-reply { border-left: 2px solid var(--fs-green-ink); border-radius: 0; background: rgba(255, 255, 255, 0.05); }
body.fs .fan-reply-label { color: var(--fs-green-ink); }
body.fs .badge.accent { background: var(--fs-green); color: var(--fs-white); border-radius: 0; letter-spacing: 0.14em; text-transform: uppercase; }

body.fs .footer-link,
body.fs .footer-link a { color: var(--fs-soft); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; }
body.fs .footer-link { margin-top: 28px; }
body.fs .footer-link a:hover { color: var(--fs-white); }

/* ---------- lightbox ---------- */
body.fs .fighter-lightbox { background: rgba(0, 0, 0, 0.97); }
body.fs .fighter-lightbox p { font-family: var(--fs-serif); font-style: italic; font-size: 1.05rem; }
body.fs .fighter-lightbox button { width: 44px; height: 44px; padding: 0; letter-spacing: 0; background: transparent; border-color: var(--fs-white); }
body.fs .fighter-lightbox button:hover { background: var(--fs-red); border-color: var(--fs-red); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .fs-hero { grid-template-columns: minmax(0, 1fr); }
  .fs-photo-frame { max-width: 420px; }
  .fs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .fs-gallery .fs-shot:first-child { grid-column: span 2; grid-row: span 1; }
  .fs-gallery[data-count="2"] .fs-shot:nth-child(2),
  .fs-gallery[data-count="3"] .fs-shot:nth-child(n + 2) { grid-column: span 1; grid-row: span 1; }
  .fs-gallery[data-count="2"] .fs-shot:nth-child(2) { grid-column: span 2; }
  .fs-gallery[data-count="5"] .fs-shot:nth-child(n + 2) { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-shot img { transition: none; }
}
body.fs .empty-hint { border-radius: 0; border-color: rgba(242, 239, 233, 0.16); }

/* =====================================================================
   FADES: blood red bleeding in from the right, dark green from the left,
   the same feel as the glow in the page's bottom-right corner.
   ===================================================================== */
.fs-panel {
  position: relative;
  border-top: 1px solid rgba(242, 239, 233, 0.16);
  background: linear-gradient(to left, rgba(122, 10, 10, 0.2), rgba(122, 10, 10, 0) 50%), rgba(0, 0, 0, 0.86);
}
/* Every other section: red from the left instead, so the page alternates (v14: was green). */
.fs-page > .fs-panel:nth-of-type(even) {
  background: linear-gradient(to right, rgba(122, 10, 10, 0.2), rgba(122, 10, 10, 0) 50%), rgba(0, 0, 0, 0.86);
}
/* The top edge glows in from the same side. */
.fs-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to left, rgba(194, 26, 26, 0.8), rgba(194, 26, 26, 0) 60%);
  pointer-events: none;
}
.fs-page > .fs-panel:nth-of-type(even)::before { background: linear-gradient(to right, rgba(194, 26, 26, 0.8), rgba(194, 26, 26, 0) 60%); }

/* Hairlines fade out toward the left instead of stopping dead. */
.fs-record {
  border: none;
  background: linear-gradient(to left, rgba(194, 26, 26, 0.45), rgba(242, 239, 233, 0.06) 75%) top / 100% 1px no-repeat,
    linear-gradient(to left, rgba(194, 26, 26, 0.45), rgba(242, 239, 233, 0.06) 75%) bottom / 100% 1px no-repeat;
}
.fs-record-dash { background: linear-gradient(to bottom, rgba(217, 217, 217, 0), var(--fs-green-ink) 50%, rgba(194, 26, 26, 0)); }
.fs-stat {
  border-bottom: none;
  background: linear-gradient(to left, rgba(194, 26, 26, 0.33), rgba(242, 239, 233, 0.06) 65%) bottom / 100% 1px no-repeat;
}
.fs-eyebrow::before { width: 44px; background: linear-gradient(to right, rgba(194, 26, 26, 0), var(--fs-red-ink)); }

/* Fan messages and the fighter's replies. */
body.fs .fan-message { background: linear-gradient(to left, rgba(122, 10, 10, 0.11), rgba(122, 10, 10, 0) 48%); }
body.fs .fan-reply { background: linear-gradient(to right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 80%); }

/* Make the photos harder to save: no dragging them out, no selecting them. */
.fs-page img,
.fighter-lightbox img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
