/* ============================================================
   ASP MODEL FF — styles.css
   Shared stylesheet for all pages.

   Usage: <link rel="stylesheet" href="styles.css">
   Keep only page-specific CSS in a <style> tag on each page.
   ============================================================ */

/* GOOGLE FONTS — load this link tag on every page:
   <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
*/

/* ── ROOT VARIABLES ───────────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --surface:      #181818;
  --border:       #2a2a2a;
  --border-bright:#3a3a3a;
  --text:         #f0f0f0;
  --muted:        #B5B5B5;
  --accent:       #ffffff;
  --accent-dim:   #cccccc;
  --rank-col:     #141414;
  --row-hover:    #181818;
  --header-bg:    #111111;
}

/* ── RESET ────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
  border-bottom: 1px solid var(--border);
  background: #080808; position: sticky; top: 0; z-index: 100;
}
.nav-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem;
  letter-spacing: 0.1em; color: var(--accent); text-decoration: none;
}
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 0.75rem; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: var(--surface); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.2s;
}

/* Drawer */
.drawer {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: #0a0a0a; border-left: 1px solid #2a2a2a; z-index: 200;
  transition: right 0.3s ease; padding: 5rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.drawer a {
  color: #888; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.75rem 0;
  border-bottom: 1px solid #1a1a1a; transition: color 0.15s;
}
.drawer a:hover, .drawer a.active { color: #fff; }
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 199;
}
.drawer-open .drawer { right: 0; }
.drawer-open .drawer-overlay { display: block; }

/* ══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  padding: 3rem 2rem 2rem; border-bottom: 1px solid var(--border);
  background: #0f0f0f; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 2rem;
}
.hero-left { flex: 1; }
.hero-right { text-align: right; flex-shrink: 0; }
.pos-badge {
  display: inline-block; font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.2em;
  color: var(--muted); margin-bottom: 0.5rem;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: 0.04em; line-height: 0.9; color: var(--accent);
}
.hero-meta {
  font-size: 0.75rem; color: #aaaaaa;
  margin-top: 1rem; font-family: 'DM Mono', monospace;
}

/* Hero right — player/team count */
.asp-label,
.hero-count-label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); font-family: 'DM Mono', monospace; margin-bottom: 0.25rem;
}
.player-count,
.hero-count {
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem;
  color: var(--accent); line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   CONTROLS BAR
═══════════════════════════════════════════════════════════ */
.controls {
  padding: 1rem 2rem; border-bottom: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  background: #0c0c0c;
}
.search-wrap { position: relative; flex: 1; max-width: 320px; }
.search-wrap input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--border-bright); color: var(--text);
  padding: 0.5rem 0.75rem 0.5rem 2.25rem; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 0.8rem;
  outline: none; transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: #666; }
.search-wrap input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.8rem;
}
.pos-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pos-btn {
  background: var(--surface); border: 1px solid var(--border-bright);
  color: #aaa; padding: 0.35rem 0.7rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.15s; font-family: 'DM Mono', monospace;
}
.pos-btn:hover { color: var(--text); border-color: #666; }
.pos-btn.active { color: var(--accent); border-color: var(--accent); background: #1e1e1e; }
.last-updated {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--muted); margin-left: auto;
}

/* ══════════════════════════════════════════════════════════
   RANKINGS TABLE
═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; padding: 0 2rem 4rem; }
table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.85rem; }
thead tr { background: var(--header-bg); border-bottom: 1px solid var(--border-bright); }
th {
  padding: 0.65rem 1rem; text-align: left; font-size: 0.65rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #999; white-space: nowrap;
}
th.sortable, th[data-col] { cursor: pointer; user-select: none; transition: color 0.15s; }
th.sortable:hover, th[data-col]:hover { color: var(--text); }
th.sorted { color: var(--accent); }
th:first-child { width: 56px; text-align: center; }
.sort-arrow { margin-left: 4px; opacity: 0.4; }
th.sorted .sort-arrow { opacity: 1; }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  animation: fadeIn 0.3s ease both;
}
tbody tr:hover { background: var(--row-hover); }
tbody tr:nth-child(5n) { border-bottom: 1px solid var(--border-bright); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

td { padding: 0.75rem 1rem; color: var(--text); white-space: nowrap; }
td:first-child {
  text-align: center; font-family: 'DM Mono', monospace;
  font-size: 0.75rem; color: #888;
  background: var(--rank-col); border-right: 1px solid var(--border); width: 56px;
}
.rank-1 td:first-child { color: #ffd700 !important; }
.rank-2 td:first-child { color: #c0c0c0 !important; }
.rank-3 td:first-child { color: #cd7f32 !important; }

.player-name { font-weight: 500; color: var(--accent); }
.team-badge {
  font-family: 'DM Mono', monospace; font-size: 0.77rem; font-weight: 600;
  background: #b0b0b0; padding: 0.2rem 0.5rem; border-radius: 3px;
  border: 1px solid var(--border-bright);
}
.pos-tag {
  font-family: 'DM Mono', monospace; font-size: 0.82rem; font-weight: 600;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  border: 1px solid var(--border-bright); color: #ccc; background: #2a2a2a;
}
.asp-score { font-family: 'DM Mono', monospace; font-weight: 500; color: var(--accent); }
.round-grade { font-family: 'DM Mono', monospace; font-size: 0.8rem; color: #bbb; }

/* ══════════════════════════════════════════════════════════
   LOADING / SPINNER / ERRORS
═══════════════════════════════════════════════════════════ */
.loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 6rem 2rem; gap: 1rem; color: var(--muted);
}
.spinner {
  width: 32px; height: 32px; border: 2px solid var(--border-bright);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-family: 'DM Mono', monospace; font-size: 0.75rem; letter-spacing: 0.1em; }
.error-msg {
  padding: 4rem 2rem; text-align: center;
  color: var(--muted); font-family: 'DM Mono', monospace; font-size: 0.8rem;
}
.empty-state {
  padding: 3rem 1rem; text-align: center;
  color: #444; font-family: 'DM Mono', monospace; font-size: 0.78rem;
}

/* ══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 300;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #363636; border: 1px solid #3a3a3a; border-radius: 8px;
  padding: 2rem; max-width: 480px; width: 100%;
  position: relative; animation: fadeIn 0.2s ease;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: #888; font-size: 1.2rem;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-pos { font-family: 'Bebas Neue', sans-serif; font-size: 0.8rem; letter-spacing: 0.2em; color: #888; margin-bottom: 0.25rem; }
.modal-name { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 1.25rem; }
.modal-stats { display: flex; gap: 2.5rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #2a2a2a; }
.modal-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.modal-stat-label { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: #999; }
.modal-stat-value { font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500; color: #fff; }
.modal-notes { font-size: 0.88rem; line-height: 1.7; color: #bbb; }
.modal-no-notes { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: #555; font-style: italic; }

/* ══════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS
   Used by: about.html, draft-notes.html, years-past.html
═══════════════════════════════════════════════════════════ */
.section { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.75rem; overflow: hidden; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; cursor: pointer; background: var(--surface);
  transition: background 0.15s; user-select: none; gap: 1rem;
}
.section-header:hover { background: #202020; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 0.06em; color: var(--accent); }
.section-meta { display: flex; align-items: center; flex-shrink: 0; }
.section-football { font-size: 1.2rem; transition: transform 0.3s ease; flex-shrink: 0; display: inline-block; }
.section.open .section-football { transform: rotate(90deg); }
.section-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem; background: #0e0e0e;
}
.section.open .section-body { max-height: 3000px; padding: 1.25rem; }
.section-body p { color: #ccc; line-height: 1.75; margin-bottom: 1.25rem; font-size: 0.95rem; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul { list-style: none; margin-bottom: 1.25rem; }
.section-body ul li {
  color: #ccc; font-size: 0.95rem; line-height: 1.75;
  padding: 0.3rem 0 0.3rem 1rem;
  border-left: 2px solid var(--border-bright); margin-bottom: 0.5rem;
}

/* Sub-sections (about.html rookie section) */
.subsection { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--border-bright); }
.subsection-title { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.06em; color: #aaa; margin-bottom: 0.5rem; }

/* ══════════════════════════════════════════════════════════
   CONTENT PAGES
   Used by: about.html, draft-notes.html, years-past.html
═══════════════════════════════════════════════════════════ */
.content { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.content > p { color: #ccc; line-height: 1.75; margin-bottom: 1.25rem; font-size: 0.95rem; }
.content h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 0.05em; color: var(--accent); margin: 2.5rem 0 1rem; }
.placeholder-note {
  font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border-bright);
  border-radius: 4px; padding: 1rem; margin-bottom: 2rem; line-height: 1.6;
}

/* Stat row (years-past.html) */
.stat-row {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 1rem;
  padding: 0.75rem 1rem; background: #141414; border-radius: 4px;
  border: 1px solid var(--border); font-family: 'DM Mono', monospace; font-size: 0.72rem;
}
.stat-item { color: var(--muted); }
.stat-item span { color: var(--text); }

/* ══════════════════════════════════════════════════════════
   TEAM OUTLOOKS PAGE
═══════════════════════════════════════════════════════════ */
.team-section { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.75rem; overflow: hidden; position: relative; }
.team-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.25rem 0.85rem 1.5rem; cursor: pointer;
  background: var(--surface); transition: background 0.15s;
  user-select: none; position: relative; overflow: hidden;
}
.team-header:hover { background: #474747; }
.team-color-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.team-watermark {
  position: absolute; right: 120px; top: 50%; transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif; font-size: 4rem; letter-spacing: 0.05em;
  opacity: 0.40; pointer-events: none; line-height: 1;
  text-shadow: 0 0 20px currentColor, 0 0 50px currentColor;
}
.team-rank {
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #555;
  width: 48px; text-align: center; flex-shrink: 0; line-height: 1;
}
.team-info { flex: 1; min-width: 0; padding-left: 0.5rem; }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--accent); line-height: 1; }
.team-abbr-badge {
  display: inline-block; font-family: 'DM Mono', monospace; font-size: 0.68rem;
  font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 3px;
  background: #b0b0b0; border: 1px solid #3a3a3a; margin-top: 0.2rem;
}
.team-football { font-size: 1.1rem; transition: transform 0.3s ease; flex-shrink: 0; display: inline-block; }
.team-section.open .team-football { transform: rotate(90deg); }
.team-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.25rem; background: #1a1a1a;
}
.team-section.open .team-body { max-height: 2000px; padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
.team-body p { color: #ccc; line-height: 1.75; margin-bottom: 1rem; font-size: 0.95rem; }
.team-body p:last-child { margin-bottom: 0; }
.no-thoughts { font-family: 'DM Mono', monospace; font-size: 0.78rem; color: #444; font-style: italic; }

/* Team outlooks content area (wider than content pages) */
.team-content { max-width: 760px; margin: 0 auto; padding: 2rem 2rem 6rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 2rem 1rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .controls { padding: 0.75rem 1rem; }
  .table-wrap { padding: 0 0 3rem; }
  .team-watermark { display: none; }
}
