/* ========== ROOT VARIABLES ========= */
:root {
  --bg: #000000;
  --fg: #F9FAFB;
  --accent: #a9ceff;
  --secondary: #171717;
  --highlight: #676aff;
  --border: #000000;
--font: 'Manrope', sans-serif;
}

/* ========== GLOBAL RESET & BASE ========== */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  height: 100%;
  overflow-y: auto !important;
}


html, body {
  height: 100%;
  width: 100%;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  height: calc(100vh - 60px); /* assumes header is 60px tall */
  width: 100%;
    background: radial-gradient(circle at center, #0d1117 0%, #000000 100%)

}

.team-view .main-content {
  display: flex;
  flex-direction: row;
}

.team-view .tab-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
}
.network-wrapper {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 60px); /* or however tall your header is */
  overflow: hidden;
}





.tab-content {
  flex: 1;
  display: flex;
  overflow-y: auto;
  height: 100%;
}

.network-wrapper {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}





select, button, input[type="checkbox"] {
  font-family: inherit;
  font-size: 14px;
}

/* ========== HEADER ========== */
#main-header {
  background-color: #0c1220;
  padding: 16px 32px;
  display: flex;
  justify-content: center; /* center the .header-inner */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #1e2a40;
    position: relative;
  z-index: 10000;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: center;  /* ⬅️ centers the tabs */
  align-items: center;
  padding: 32px 0;
}
.logo {
  flex-shrink: 0;
}


/* This centers the tabs by absolute positioning */
.center-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.center-tabs {
  margin: 0 auto;
}

/* Optional: if you want tab buttons to look nice */
.tab-bar {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}




.tab-button:hover {
  background-color: rgba(173, 216, 255, 0.1);
}

.tab-button.active {
  background: rgba(173, 216, 255, 0.1);
  color: #a4c8ff;
  font-weight: 600;
  text-decoration: none;       /* ← removes accidental underline */
  box-shadow: 0 0 8px rgba(173, 216, 255, 0.3);
}









.tab-button::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.tab-button:hover::after {
  width: 100%;
}

/* .tab-button.active::after {
  width: 100%;
} */


/* 
.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: --accent;
  border-radius: 1px;
  transition: width 0.2s ease;
} */


.team-header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
}

/* LOGO + TEAM ID */
.team-id-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.nav-team-logo {
  width: 32px;
  height: 32px;
}

.season-selector-wrapper {
  margin-left: 0.5rem;
}
.season-selector {
  background-color: #161d2f;
  color: #dbeaff;
  border: 1px solid #2a395b;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 16px;
}
.team-tabs {
  display: flex;
  gap: 16px;
}

.team-tab {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 12px;
  border-radius: 6px;
  transition: all 0.25s ease;
  color: #e2e8f0;
  background: transparent;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.team-tab.active,
.team-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  text-shadow: 0 0 4px var(--accent);}

/* BACK BUTTON */
.back-button {
  font-size: 16px;
  color: #dbeaff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-button:hover {
  opacity: 0.8;
}

.team-id-banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-team-logo {
  height: 28px;
}

.team-abbr {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}

.season-selector-wrapper select {
  background: #111;
  color: var(--text-light);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 14px;
  appearance: none;
}


/* ========== TEAM LOGO GRID ========== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px;
}

/* REMOVE background and box styling */
.team-card {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Optional glow effect on hover */
.team-card:hover .team-logo {
  box-shadow: 0 0 16px 6px rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Circular logos with soft transitions */
.team-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: black;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Optional: hide or soften team abbreviation */
.team-name {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.team-card:hover .team-name {
  opacity: 1;
  color: #fff;
}

.team-grid-intro {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.team-grid-intro p {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
  font-weight: 400;
}

/* ========== PAGE LAYOUT ========== */
.team-layout {
  display: flex;
  flex-direction: row;
    height: 100%;   /* ✅ ensure it fills vertically */
  width: 100%;    /* ✅ ensure it fills horizontally */  overflow: hidden;
}

.team-layout .sidebar {
  width: 240px;
  padding: 20px;
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;

}


.team-layout .main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.team-layout .tab-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#passing-tab {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 500px;  /* ⬅ forces parent to have space */
}

#network {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px;  /* ⬅ also forces it to size correctly */
  overflow: hidden;
}

#network svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* .player-card-content {
  background-color: var(--secondary);
} */
.player-card-header {
  display: flex;
  justify-content: flex-end;
}

.player-card-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 8px 0;
  object-fit: cover;
}

.player-card-name {
  font-size: 16px;
  font-weight: bold;
  margin: 4px 0 8px;
}

.player-card-table {
  width: 100%;
  font-size: 14px;
  border-spacing: 6px;
  margin-top: 6px;
  color: var(--text-light);
}

.player-card-table td {
  text-align: right;
}

.player-card-table td:first-child {
  text-align: left;
}



/* ========== TABS ========== */
.tab-button {
  position: relative; /* ← KEY */
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #dbeaff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: rgba(173, 216, 255, 0.08); /* subtle blue glow */
  box-shadow: 0 0 8px rgba(173, 216, 255, 0.35);
  color: #a4c8ff;
  font-weight: 600;
}

/* ========== PLAYER CHECKBOXES ========== */
/* Container tweaks */
.players {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 120px); /* ensures scroll space */
  overflow-y: auto;
  padding-right: 4px;
}

/* Label style */
.player-checkbox {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.player-checkbox:hover {
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  border-radius: 6px;
}

.player-checkbox:hover {
  background-color: rgba(255,255,255,0.04);
  border-color: var(--accent);
}


.player-checkbox input[type="checkbox"] {
  display: none;
}

/* Custom checkbox */
.custom-checkbox {
  display: none;
}

.player-checkbox input[type="checkbox"]:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0px;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Text */
.player-name {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.2px;
  font-family: var(--font);
}
.player-checkbox input[type="checkbox"]:checked + .custom-checkbox + .player-name {
  font-weight: bold;
  color: var(--accent);
}
.player-checkbox input[type="checkbox"]:checked ~ .player-name {
  color: var(--accent);
}
.player-checkbox input[type="checkbox"]:checked ~ .custom-checkbox {
  border-color: var(--accent);
}


#network-header {
  margin-left: auto;
}
.toggle-container {
  margin-bottom: 10px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #dbeaff;
  font-size: 14px;
}
/* .toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  font-size: 14px;
  color: #eee;
  cursor: pointer;
} */

.toggle-label input[type="checkbox"] {
  display: none;
}
.custom-toggle {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background-color: #666;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.custom-toggle::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.toggle-label input:checked + .custom-toggle {
  background-color: var(--accent);
  box-shadow: 0 0 8px 2px var(--accent);
}

.toggle-label input:checked + .custom-toggle::before {
  transform: translateX(16px);
  background-color: #fff;
}


.toggle-group {
  display: flex;
  gap: 12px;
  margin-top: 12px;
    justify-content: center;  /* 👈 center items horizontally */


    
}

.assist-toggle-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* .toggle-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  background: transparent;
  color: var(--fg);
} */
.toggle-pill {
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid #333;
  background-color: #111;
  color: #ccc;
  cursor: pointer;
  user-select: none;
}

.toggle-pill.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* .toggle-pill:hover {
  background: rgba(255, 255, 255, 0.05);
} */

input[type="checkbox"]:checked + .toggle-pill {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
  font-weight: bold;
}


/* ========== RIGHT PANEL ========== */


.team-view .tab-content {
  display: flex;
}




text {
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.6);
  stroke-width: 1.5px;
}

.right-panel {
  position: absolute;
  top: 80px;
  right: 0;
  width: 500px;
  height: calc(100% - 64px);
  background: var(--bg-panel);
  padding: 24px 20px 20px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 999;
  border-left: 1px solid var(--stroke);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;

  /* ADD THIS 👇 */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.right-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}


.right-panel .close-panel-button {
  position: absolute;
  top: 8px;  /* or even 4px */
  right: 12px;
  background: var(--accent);
  color: #111;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

#player-details {
  background: #000000;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

#player-details img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

#player-details h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  color: white;
}

#player-details p {
  margin: 2px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== NETWORK + CHARTS ========== */
#network svg,
#assist-network svg {
  width: 100%;
  height: 100%;
  
}
#network {
  background: radial-gradient(circle at center, #0a0a0a, #000000);
}

.shot-chart-container,
#lineup-shot-chart-container {
  margin-top: -30px;
  background: var(--bg);
  /* border: 1px solid var(--border); */
  /* border-radius: 10px; */
  padding: 12px;
    padding-bottom: 80px; /* or more, like 32px */
        background-color: transparent;


}


.reset-filter-button {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.reset-filter-button:hover {
  background: linear-gradient(145deg, #334155, #1e293b);
  color: white;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.reset-filter-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ========== LINEUP TABLE + RESULTS ========== */
#lineup-results {
  display: flex;
  flex-direction: row;
  margin-top: 16px;
  gap: 24px;
  flex-wrap: wrap;
    align-items: flex-start; /* ✅ Align top edges */

}

#lineup-table-wrapper {
  overflow-x: auto;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 12px;
    width: 100%;
  overflow-x: auto;
  margin-bottom: 16px;
    transition: opacity 0.4s ease;

}

.lineup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lineup-table th,
.lineup-table td {
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.lineup-row:hover {
  background: #1e293b;
  cursor: pointer;
}

.lineup-row.selected {
  background: var(--accent);
  color: black;
}

#lineup-tab {
  overflow-y: auto;
  padding: 16px 24px;
}

.lineup-explorer-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== TOOLTIP ========== */
.tooltip {
  position: absolute;
  background: #111827;
  color: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  pointer-events: none;
  z-index: 999;
  max-width: 240px;
}

#assist-court-svg {
  display: block;
  margin-bottom: 32px;

}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 900px) {
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .right-panel {
    position: relative;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  #lineup-results {
    flex-direction: column;
  }
}


/* ========== LEAGUE EXPLORER ========== */
/* League Explorer Layout */
.league-controls {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

#season {
  background: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1rem;
}


/* Each Role Panel */
.league-role-section {
  background: #1c1c1c;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}



.league-role-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.expand-button {
  background-color: var(--accent);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}

.expand-button:hover {
  background-color: #fcd34d;
}

/* Table Styling */
.league-role-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.25rem;
    width: 100%;
  table-layout: auto; 
}
#league-role-tables {
  width: 100vw;          /* Stretch full width of viewport */
  max-width: 100%;       /* Prevent shrink-wrap */
  padding: 0 1rem;       /* Narrow padding if needed */
  box-sizing: border-box;
}

.role-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 1.5rem;
  width: 100%;
}
.league-role-section {
  flex: 1 1 280px; /* Allow responsive resizing */
  max-width: 320px;
}
.league-role-table th,
.league-role-table td {
  /* padding: 8px 10px; */
  text-align: left;
  border-bottom: 1px solid #333;
  color: #ddd;
    padding: 10px 12px;
  font-size: 0.98rem;
}



.league-role-table a {
  color: #3b82f6;
  text-decoration: none;
}

.league-role-table a:hover {
  text-decoration: underline;
}

.table-wrapper.collapsed .extra-row {
  display: none;
}

.league-role-section.wide {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

/* Optional: Hover row highlight */
.league-role-table tr:hover {
  background-color: #2a2a2a;
}

/* Override for League Explorer full-width layout */
body.league-explorer main,
body.league-explorer #league-role-tables {
  width: 100vw;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
}

body.league-explorer .role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.league-role-section.strongest-connections {
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem 2rem;
  background: #1c1c1c;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ========== PLAYER PAGE ========== */
.player-page {
  padding: 1.5rem;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.player-header img.headshot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #999;
}

.player-meta .player-name-page {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.player-meta .player-team {
  font-size: 1.1rem;
  opacity: 0.8;
}

.player-stats-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: #1f1f2e;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card li {
  margin: 0.3rem 0;
}

.player-visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 2rem;
  align-items: stretch;  /* Ensure full height */
}

.player-visuals-grid .card {
  height: 600px;  /* Was 520px */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


#player-network,
#court-svg {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}


.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ffd700;
}


/* ========== PLAYER PAGE - NETWORK ========== */
.link {
  stroke: var(--accent);
  stroke-opacity: 0.3;
  transition: stroke-opacity 0.25s ease;
}

.link.highlighted {
  stroke-opacity: 0.8;
}

#assist-chart-controls {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#assist-chart-controls.visible {
  display: flex; /* or block depending on layout */
  opacity: 1;
}

#lineup-loading {
  display: none;
  margin: 32px auto;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top: 4px solid #50b7f5;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  box-shadow: 0 0 8px rgba(80, 183, 245, 0.4);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== HOMEPAGE ===== */
.home-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem 0 2rem;
}

.home-logo-section .logo {
  max-width: 300px;
  width: 90%;
  height: auto;
  margin-bottom: 1rem;
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

.tagline {
  font-size: 1.1rem;
  color: #aaaaaa;
  margin-top: 0.5rem;
  text-align: center;
}

.home-description {
  max-width: 750px;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.home-description h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #ffffff;
}

.home-description ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

.home-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta-button,
.secondary-button {
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease-in-out;
}

.cta-button {
  background-color: #00dba0;
  color: #1c1c1c;
}

.cta-button:hover {
  background-color: #00c992;
}

.secondary-button {
  background-color: transparent;
  color: #00dba0;
  border: 2px solid #00dba0;
}

.secondary-button:hover {
  background-color: #00dba0;
  color: #1c1c1c;
}




/* === FILTER CONTAINER === */

/* Prevent white flash before Choices initializes */
#team-filter,
#player-search,
#season {
  background-color: #1c1c1e;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  height: 40px;
  box-sizing: border-box;
  padding: 6px 10px;
}

.league-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
}

.filter-group.wide-player-select {
  width: 240px;
}

.filter-group label {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 4px;
  line-height: 1;
}

.filter-group select,
.filter-group .choices {
  width: 100%;
  height: 40px;
}

/* === RESET BUTTON === */
.reset-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 64px;
}

.reset-wrapper label {
  visibility: hidden;
  height: 18px;
  margin-bottom: 4px;
}

#reset-filters {
  height: 40px;
  width: 140px;
  background-color: #1c1c1e;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: var(--font);
}

#reset-filters:hover {
  background-color: #333;
}
/* === FILTER INPUT STYLES (UNIFIED LOOK) === */
select#season,
.choices {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: #1c1c1e;
  border: 1px solid #444;
  font-size: 14px;
  font-family: var(--font);
  color: white;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* Remove double-box effect by making inner fill full height */
.choices__inner {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 10px !important;
  min-height: unset !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  border-radius: 8px !important;
}

/* Tokens (tags) inside multiselect */
.choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  overflow: hidden;
}
.choices__list--multiple .choices__item {
  background-color: #2c2c2e !important;
  color: #eee !important;
  border: 1px solid #444 !important;  /* override teal border */
  border-radius: 16px !important;
  padding: 4px 8px;
  font-size: 13px;
  margin: 2px;
  box-shadow: none !important;
}




/* Input inside multiselect */
.choices__input {
  background-color: transparent !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  margin: 0;
  min-width: 10px;
  flex: 1 0 auto;
  box-shadow: none !important;
}

/* Placeholder text */
.choices__placeholder {
  color: #aaa !important;
}

.choices__input::placeholder {
  color: #aaa !important;
}

/* Dropdown menu items */
.choices__list--dropdown,
.choices__list[aria-expanded] {
  background-color: #121212;
  color: white;
  border: 1px solid #333;
  border-radius: 6px;
}

.choices__item--selectable {
  background-color: #121212;
  color: white;
}

.choices__item--selectable.is-highlighted {
  background-color: #333 !important;
  color: white !important;
}





.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.2s; /* add delay to soften entrance */
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


.subsection {
  margin-top: 2rem;
}

.subsection h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.expandable-role {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.expand-btn {
  background-color: #1f1f1f;
  color: #ccc;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.expand-btn:hover {
  background-color: #2a2a2a;
}

.expand-content {
  display: none;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
}

.expand-content.open {
  display: block;
}

body {
  letter-spacing: 0.2px;
  font-smooth: always;
}

.home-description p {
  font-size: 1.1rem;
  line-height: 1.8;
}


#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
  background: black; /* fallback */
}






.about-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  color: #e6e6e6;
}

.about-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.about-text h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #fff;
}

.contact-cards {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: #dceaff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  transition: 0.3s ease;
}

.contact-card:hover {
  background: rgba(120, 180, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.3);
  color: #a8caff;
}

.contact-card i {
  font-size: 1.4rem;
}







.article-card h2 {
  margin: 0;
  font-size: 1.2em;
}

.article-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 24px;
}

.article-body p {
  line-height: 1.6;
  margin-bottom: 1em;
}


/* Surrounding card layout */
.articles-index,
.article-list {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
  background: #0e0e0e;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
    position: relative; /* just in case */
  z-index: auto;  
}

/* Article container grid */
.article-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 32px;
}

/* Article card itself */
.article-card {
  background-color: #181818;
  width: 320px;
  height: auto;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2a2a2a;
  background-color: #181818;
  border-radius: 16px;
  overflow: hidden;
    position: relative;
  z-index: 1;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Integrated thumbnail with rounded top corners */
.article-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;

  /* this creates a shadow or divider under the image */
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.06), 
              0 1px 0 #333;
                position: relative;
  transition: filter 0.3s ease;
}

/* Main card content */
.article-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.article-title {
  font-size: 1.15em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.article-date {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 10px;
}

.article-snippet {
  color: #ccc;
  font-size: 0.95em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 12px;
}

.article-cta {
  font-size: 0.9em;
  color: #58a6ff;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 4px;  /* spacing below */
  transition: color 0.2s ease;
}

.article-card:hover .article-cta {
  color: #7db9ff;
}

.article-card:hover .article-thumb {
  filter: brightness(0.85);
}


.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  background-color: #121212;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  min-width: 160px;
  position: absolute;
  z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
      transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(5px);
}

.dropdown-content li {
  list-style: none;
  padding: 0;
}

.dropdown-content li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #9ecbff;
  text-decoration: none;
}

.dropdown-content li a:hover {
  background-color: #1f1f1f;
  color: white;
}

.dropdown-wrapper:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
}
.hidden {
  display: none;
}


th {
  cursor: pointer;
  user-select: none;
}

th:hover {
  background-color: #1c1c1c;
}


.byline {
  font-size: 0.95rem;
  font-style: italic;
color: #fff;
opacity: 0.6;
  margin-bottom: 1.2rem;
}


.team-metrics-container {
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  background-color: #0f0f0f; /* optional */
  border-radius: 8px;        /* optional */
}


.tooltip-icon {
  margin-left: 6px;
  cursor: help;
  font-size: 0.85em;
  vertical-align: middle;
  color: #888;
}

.tooltip-icon:hover {
  color: #ccc;
}


.tooltip-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 6px;
  font-size: 0.85em;
  color: #888;
}

.tooltip-wrapper:hover {
  color: #ccc;
}

.custom-tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 200px;
  background-color: #111;
  color: #fff;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  position: absolute;
  z-index: 10;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: normal;
  transition: opacity 0.1s ease-in-out;
}

.tooltip-wrapper:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

#particles-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
  pointer-events: none;
}

.home-logo-section,
.home-description,
.tagline {
  position: relative;
  z-index: 1;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

main, .page-layout {
  position: relative;
  min-height: 100vh;
}


