/* =========================================================
   Varun Nagendran: Scouting Report
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --accent: #C8F031;
  --bg: #0A0C0B;
  --card: #121614;
  --border: #1F2622;
  --border-strong: #34403A;
  --text: #EDEFEC;
  --muted: #A2ABA5;
  --subtle: #86908A;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --gutter: 32px;
  --yard-lines: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px,
    transparent 1px, transparent 120px);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--text); text-decoration: none; }
a:hover { color: #FFFFFF; }

section[id] { scroll-margin-top: 72px; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--muted); }

/* Small uppercase mono label, e.g. "POSITION", "START / SIT MODEL" */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* Small mono note, e.g. "Plays: ...", "CLASS OF 2026" */
.mono-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

/* Accent kicker above section titles, e.g. "01 · EXPERIENCE" */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.display-num {
  font-family: var(--font-display);
  font-weight: 800;
}

/* ---------- Ticker ---------- */
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 9px 0 9px 40px;
  animation: ticker 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 12, 11, 0.94);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.brand-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a,
.nav-links a:hover {
  padding: 13px 10px;
  color: var(--muted);
}

.nav-links a.nav-sign,
.nav-links a.nav-sign:hover {
  padding: 13px 12px;
  color: var(--accent);
}

/* Underline is always there but transparent, so it can fade in */
.nav-links a {
  text-decoration: underline 2px transparent;
  text-underline-offset: 7px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

/* Link for the section on screen (set by script.js): lime text, lime underline */
.nav-links a.is-active,
.nav-links a.is-active:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

/* Condensed uppercase style used in the hero */
.btn-display {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-primary,
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:not(.btn-display) { font-weight: 600; }

.btn-outline { border: 1px solid var(--border-strong); }

.text-link,
.text-link:hover {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--border);
  background-image: var(--yard-lines);
}

.hero-inner {
  padding-top: 96px;
  padding-bottom: 104px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.hero-main {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prospect-tag {
  display: inline-flex;
  align-self: flex-start;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 5px 10px;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.bio-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bio-item {
  flex: 1 1 160px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.bio-item:first-child { padding-left: 0; border-left: 0; }
.bio-item:last-child { flex-basis: 120px; }

.bio-value { font-weight: 600; }

.lead {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}

.hero .btn-row { padding-top: 4px; }

/* ---------- Field goal game card (kicker.js) ---------- */
.score-card {
  flex: 0 1 400px;
  min-width: 0;
  width: 100%;
}

.score-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.score-head [data-kick-distance] { color: var(--accent); }

.kick-field { border-bottom: 1px solid var(--border); }

.kick-canvas {
  display: block;
  width: 100%;
  height: 300px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.kick-canvas:active { cursor: grabbing; }
.kick-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.kick-stats { display: flex; }

.kick-stat {
  flex: 1 1 0;
  padding: 14px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border);
}
.kick-stat:first-child { border-left: 0; }

.kick-num {
  font-size: 44px;
  line-height: 1;
  color: var(--text);
}
.kick-stat:first-child .kick-num { color: var(--accent); }

.kick-foot {
  border-top: 1px solid var(--border);
  padding: 14px 20px 18px;
}

.kick-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s, color 0.15s;
}
.kick-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#stats { padding-top: 96px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  text-transform: uppercase;
}

.item-title {
  font-size: 21px;
  font-weight: 600;
}
.item-title span {
  color: var(--subtle);
  font-weight: 400;
}
.item-title.is-small { font-size: 19px; }

/* ---------- 01 Career stats ---------- */
.seasons {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--text);
}

.season {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.season-when {
  flex: 0 0 120px;
  display: flex;
  flex-direction: column;
}

.season-year {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.season-months {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--subtle);
}

.season-body {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-boxes {
  flex: 1 1 300px;
  display: flex;
  gap: 8px;
}

.stat-box {
  flex: 1 1 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.stat-num {
  font-size: 30px;
  line-height: 1.05;
}

.stat-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 02 Game film ---------- */
.film-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.film-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.film-link,
.film-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.film-body {
  padding: 32px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.film-main {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.film-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.film-side {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.factors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.factor {
  flex: 1 1 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.factor-name { font-weight: 600; }

.factor-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Shared card rows (combine, highlights, locker room) ---------- */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- 03 The combine ---------- */
.edu-card {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edu-card.is-accent { border-top-color: var(--accent); }
.edu-card.is-narrow { flex-basis: 320px; }

.edu-courses {
  margin-top: 4px;
  font-size: 14px;
  color: var(--subtle);
}

/* ---------- 04 Highlight reel ---------- */
.hl-card {
  flex: 1 1 420px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hl-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}

.hl-badge.is-accent {
  border: 0;
  background: var(--accent);
  color: var(--bg);
}

.hl-badge-num {
  font-size: 34px;
  line-height: 1;
}

.hl-badge-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}
.hl-badge.is-accent .hl-badge-sub {
  font-weight: 700;
  color: inherit;
}

.hl-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- 05 Locker room ---------- */
.locker-row { align-items: stretch; }

.panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel.is-filled { background: var(--card); }

.lifts-panel { flex: 1 1 360px; }
.hobbies-panel { flex: 1 1 480px; }

.lifts {
  display: flex;
  gap: 32px;
}

.lift-num {
  font-size: 64px;
  line-height: 0.95;
  color: var(--accent);
}

.lift-desc {
  font-size: 13px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}

/* ---------- 06 Sign this player ---------- */
.sign {
  border-top: 1px solid var(--border);
  background-image: var(--yard-lines);
}

.sign-inner {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.sign-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  text-transform: uppercase;
}

.sign .lead { max-width: 600px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }

.footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
}

/* =========================================================
   Phone widths
   ========================================================= */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  section[id] { scroll-margin-top: 108px; }

  /* Brand on one row, links on a single swipeable row below */
  .nav { gap: 0; padding-top: 4px; }
  .nav-links {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 calc(var(--gutter) - 10px);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }

  /* Hero */
  .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-main { gap: 20px; }
  .lead { font-size: 17px; }

  /* Position / Program / Hometown: one row each, label left, value right */
  .bio-item,
  .bio-item:first-child,
  .bio-item:last-child {
    flex-basis: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .bio-item:first-child { border-top: 0; }
  .bio-value { text-align: right; }

  .kick-canvas { height: 280px; }
  .kick-stat { padding: 12px 16px 10px; }
  .kick-num { font-size: 36px; }

  /* Sections */
  .section { padding-top: 64px; padding-bottom: 56px; gap: 28px; }
  #stats { padding-top: 72px; }
  .section-title { font-size: 44px; }

  .season { gap: 12px; padding: 24px 0; }
  .season-when { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 12px; }
  .season-year { font-size: 36px; }
  .season-body,
  .stat-boxes { flex-basis: 100%; }
  .item-title { font-size: 19px; }

  .film-head { padding: 12px 20px; }
  .film-body { padding: 24px 20px; gap: 28px; }
  .film-title { font-size: 32px; }
  .film-main,
  .film-side { flex-basis: 100%; }

  .edu-card,
  .hl-card,
  .lifts-panel,
  .hobbies-panel { flex-basis: 100%; padding: 20px; }

  /* Badge sits above the text so the text gets the full card width */
  .hl-card { flex-direction: column; gap: 16px; }
  .hl-badge { width: 72px; height: 72px; }
  .hl-badge-num { font-size: 28px; }

  .sign-inner { padding-top: 72px; padding-bottom: 80px; gap: 20px; }
}
