/* ============================================================
   Zander Teator — Recruiting Profile
   Dark, athletic, single-theme site. All content is data-driven
   from js/data.js — this file only styles the shell/components.
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-alt: #0d1319;
  --surface: #131a23;
  --surface-2: #182029;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --ink-primary: #f5f6f8;
  --ink-secondary: #aab2c0;
  --ink-muted: #6b7383;

  --accent: #eb6834;       /* orange — primary CTA / identity */
  --accent-dim: #b84f24;
  --accent-soft: rgba(235, 104, 52, 0.14);

  --blue: #3987e5;         /* stat / chart secondary */
  --blue-soft: rgba(57, 135, 229, 0.14);

  --good: #0ca30c;
  --warn: #d03b3b;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1080px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-primary);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.topline {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 4px 10px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-primary);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 24px 72px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, var(--blue-soft), transparent 60%);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text {
  min-width: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: block;
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hero-text { flex: 1.15; }
  .hero-photo { flex: 0.95; }
}

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.hero-role {
  font-size: 1.2rem;
  color: var(--ink-secondary);
  font-weight: 600;
  margin: 0 0 4px;
}

.hero-school {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0 0 32px;
}

.hero-headline {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
}

.hero-note {
  color: var(--ink-muted);
  font-size: 0.86rem;
  margin: 0 0 32px;
}

.hero-stat .val {
  font-size: 2.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink-primary);
}

.hero-stat .lbl {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #14100c;
}
.btn-primary:hover { background: #f07a4a; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 72px 24px; }
.section-alt { background: var(--bg-alt); }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--ink-muted);
  margin: 0 0 36px;
  font-size: 0.98rem;
}

/* ---------- Accolades ---------- */
.accolades-section .section-title {
  margin-bottom: 24px;
}

.accolades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.accolade-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
}

.accolade-icon {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.accolade-year {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.accolade-text {
  color: var(--ink-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Stuff cards ---------- */
.stuff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stuff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.stuff-card .label {
  color: var(--ink-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 10px;
}

.stuff-card .value {
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stuff-card .extra {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 6px;
}

.stuff-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.stuff-card li {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  padding: 4px 0 4px 16px;
  position: relative;
}

.stuff-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.arsenal-wrap {
  margin-top: 32px;
}

.subsection-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 48px 0 18px;
}

/* ---------- Video ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070a;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px dashed var(--border-strong);
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 10px,
    transparent 10px,
    transparent 20px
  );
}

.video-placeholder .play-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.video-placeholder .ph-text {
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #05070a;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.yt-facade::after {
  /* darken the thumbnail so the play button and card edges stay legible */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.25);
  transition: background 0.15s ease;
}

.yt-facade:hover::after { background: rgba(5, 7, 10, 0.4); }

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #14100c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.yt-facade:hover .yt-play-btn {
  background: #f07a4a;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-body {
  padding: 16px 18px;
}

.video-body h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}
.video-link:hover { text-decoration: underline; }

/* ---------- Documents (PDF view/download) ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.doc-grid.single-card {
  grid-template-columns: minmax(280px, 480px);
}

.trackman-doc-wrap {
  margin-top: 32px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.doc-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.doc-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-text h3 {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
}

.doc-text p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.doc-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.doc-toggle-btn {
  background: var(--accent);
  color: #14100c;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.doc-toggle-btn:hover { background: #f07a4a; }

.doc-download {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}
.doc-download:hover { border-color: var(--accent); }

.doc-viewer {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  border-radius: var(--radius-sm);
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.doc-viewer.open {
  max-height: min(900px, 80vh);
  margin-top: 18px;
}

.doc-viewer iframe {
  width: 100%;
  height: min(900px, 80vh);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* ---------- Stats tabs / tables ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover { border-color: var(--border-strong); color: var(--ink-primary); }

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100c;
}

.stats-table-panel { display: none; }
.stats-table-panel.active { display: block; }

.table-caption {
  color: var(--ink-muted);
  font-size: 0.84rem;
  margin: 0 0 14px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table.stat-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

table.stat-table th,
table.stat-table td {
  padding: 10px 14px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

table.stat-table th:first-child,
table.stat-table td:first-child,
table.stat-table th:nth-child(2),
table.stat-table td:nth-child(2) {
  text-align: left;
}

table.stat-table thead th {
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: var(--surface-2);
}

table.stat-table tbody tr:last-child td { border-bottom: none; }

table.stat-table tr.subtotal td {
  color: var(--ink-primary);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

table.stat-table tr.grand-total td {
  color: var(--ink-primary);
  font-weight: 800;
  background: var(--accent-soft);
  border-top: 1px solid var(--border-strong);
}

.table-note {
  margin-top: 14px;
  color: var(--ink-secondary);
  font-size: 0.86rem;
  font-style: italic;
}

.empty-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Contact / references ---------- */
.contact-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-pill:hover { border-color: var(--accent); }

.contact-pill .ico { color: var(--accent); }

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.ref-card .role {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ref-card .detail {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.site-footer p { margin: 4px 0; }
.footer-sub { color: var(--ink-muted); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }

  .hero { padding: 76px 20px 56px; }
  .section { padding: 56px 20px; }
}

@media print {
  .site-nav, .nav-toggle, .hero-actions, .video-grid, .tabs { display: none !important; }
  body { background: #fff; color: #000; }
}
