/* ============================================
   LEAN EDGE SPORTS — NBA Draft 2026 Page
   nba-draft-2026.css

   Card visuals (border, score, flag, silhouette,
   name, divider, 6-stat grid) are kept identical
   to player-stats.css for consistency. No tier
   system here — every card gets one flat
   "Draft Class 2026" badge instead of a
   performance tier.
   ============================================ */

/* --- PAGE HERO --- */
.page-hero {
  padding: 120px 60px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-hero h1 {
  font-family: tahoma;
  font-size: 64px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- PAGE LAYOUT --- */
.stats-page-layout {
  display: flex;
  min-height: calc(100vh - 300px);
}

/* --- TEAM SIDEBAR --- */
.team-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--darkest-navy);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  position: sticky;
  top: 0;
  max-height: 100vh;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 16px 10px;
}

.team-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
  color: var(--grey-font);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.team-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.team-btn.active {
  background: rgba(196, 18, 48, 0.08);
  border-left: 3px solid var(--red);
  padding-left: 13px;
  color: var(--white);
  font-weight: 600;
}

.team-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- MAIN CONTENT AREA --- */
.stats-main {
  flex: 1;
  padding: 24px 32px 60px;
  min-width: 0;
}

/* --- TOOLBAR --- */
.stats-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrap .ti-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  border-color: rgba(196, 18, 48, 0.5);
}

/* --- JUMP TO PICK --- */
.jump-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 6px 0 12px;
}

.jump-wrap label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.jump-input {
  width: 52px;
  padding: 9px 4px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  text-align: center;
}

.jump-input:focus {
  outline: none;
}

.jump-btn {
  padding: 9px 12px;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--grey-font);
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
}

.jump-btn:hover {
  color: var(--white);
}

/* --- INFO NOTICE (reused pattern) --- */
.season-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(46, 117, 182, 0.08);
  border: 1px solid rgba(46, 117, 182, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.season-notice .ti-info-circle {
  font-size: 16px;
  color: var(--mid-blue);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- ROUND NAV --- */
.round-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.round-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--grey-font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.round-nav a:hover {
  background: rgba(196, 18, 48, 0.1);
  color: var(--white);
}

/* --- TEAM HEADING / PICK COUNT --- */
.team-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.team-heading h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.player-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- ROUND SECTION --- */
.round-section {
  margin-bottom: 40px;
}

.round-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 100px;
}

/* ============================================
   DRAFT ROW
   Player card on the left, info panel on the
   right. Stacks on narrow screens.
============================================ */
.draft-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.draft-row.jump-highlight {
  background: rgba(196, 18, 48, 0.1);
  border-color: rgba(196, 18, 48, 0.4);
}

/* --- CARD (left) — sized to match player-stats grid cards --- */
.draft-row .player-card {
  width: 180px;
  flex-shrink: 0;
}

/* --- INFO PANEL (right) --- */
.draft-info-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 4px 8px;
}

.draft-pick-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.traded-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid-blue);
  background: rgba(46, 117, 182, 0.12);
  border: 0.5px solid rgba(46, 117, 182, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.info-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 105px;
  flex-shrink: 0;
}

.info-value {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
}

.draft-story .info-value i {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 2px;
}

/* ============================================
   PLAYER CARD — base structure
   (identical to player-stats.css)
============================================ */
.player-card {
  background: var(--dark-navy);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.card-border-top {
  height: 3px;
  display: flex;
}

.card-border-top .border-left {
  flex: 1;
  background: var(--navy);
}

.card-border-top .border-right {
  flex: 1;
  background: var(--red);
}

.card-inner {
  margin: 7px;
  border: 2px solid rgba(255, 255, 255, 0.353);
  border-radius: 8px;
  padding: 12px 10px 10px;
  height: calc(100% - 14px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.card-position {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}

.card-flag {
  width: 25px;
  height: 16px;
  display: block;
  border-radius: 2px;
  margin-left: auto;
}

.card-silhouette {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(26, 42, 94, 0.5);
  border: 2px solid rgba(196, 18, 48, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.card-silhouette svg {
  width: 42px;
  height: 42px;
}

.card-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  white-space: normal;
  line-height: 1.4;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.card-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.card-stat {
  text-align: center;
}

.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-team {
  text-align: center;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 8px;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

/* ============================================
   DRAFT CLASS BADGE
   Replaces the tier badge. No tier colours are
   reused here (gold/red/blue/white are already
   Elite/Excellent/Solid/Average on the player
   cards) — instead the badge mirrors the card's
   own split navy/red top border, so it reads as
   a brand label rather than a performance score.
============================================ */
.card-tier-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin: 0 auto 6px;
  text-align: center;
  width: fit-content;
}

.draft-badge {
  background: linear-gradient(90deg, var(--navy) 50%, var(--red) 50%);
  color: var(--white);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
}

/* ---- DRAFT CARD — single consistent look, no tier variation ---- */
.player-card.draft-card {
  background: #0d1830;
}

.player-card.draft-card .card-inner {
  border-color: rgba(255, 255, 255, 0.5);
}

.player-card.draft-card .card-score {
  color: var(--white);
}

.player-card.draft-card .card-position {
  color: var(--white  );
}

/* --- NO RESULTS --- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results .ti-search-off {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}

.no-results p {
  font-size: 15px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .team-sidebar {
    width: 180px;
  }

  .stats-main {
    padding: 20px 20px 50px;
  }
}

@media (max-width: 768px) {
  .stats-page-layout {
    flex-direction: column;
  }

  .team-sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }

  .sidebar-title {
    width: 100%;
    padding: 12px 16px 6px;
  }

  .team-btn {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .team-btn.active {
    border-left: none;
    border-bottom: 3px solid var(--red);
    padding-left: 16px;
    padding-bottom: 7px;
  }

  .page-hero {
    padding: 100px 24px 30px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .stats-main {
    padding: 16px 16px 40px;
  }

  .draft-row {
    flex-direction: column;
  }

  .draft-row .player-card {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .info-item {
    flex-direction: column;
    gap: 2px;
  }

  .info-label {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .stats-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .jump-wrap {
    justify-content: space-between;
  }
}

.standings-team-link,
.result-opp-link,
.card-team-link,
.draft-team-link,
.chc-name-link,
.pp-name.standings-team-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.standings-team-link:hover,
.result-opp-link:hover,
.card-team-link:hover,
.draft-team-link:hover,
.pp-name.standings-team-link:hover {
  color: var(--white);
}

.chc-name-link { display: block; }
.chc-name-link:hover .chc-name { color: var(--grey-font); }

/* --- YEAR NAVIGATION --- */
.draft-year-nav-wrap {
  display: flex;
  justify-content: center;
  padding: 20px 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.draft-year-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.year-nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.year-nav-btn:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.year-nav-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }

/* --- ROUND FILTER TABS (replaces anchor links) --- */
.round-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.round-tab {
  padding: 7px 18px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.1);
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.round-tab:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.round-tab.active { background: var(--red); color: var(--white); border-color: var(--red); }
