/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #125740;
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.page-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.back-link {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.page-title {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.position-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.position-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.position-link:hover {
  opacity: 0.9;
}

.position-link.active {
  opacity: 1;
  border-bottom-color: #f2c94c;
}

/* ---------- Layout ---------- */
.stats-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .stats-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Player panel ---------- */
.panel-heading {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 1rem;
}

.player-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.player-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.player-item.active {
  background: #ffffff;
  color: #125740;
  border-color: #ffffff;
}

.player-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.player-name {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.league-avg-note {
  margin-top: 1.5rem;
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.league-avg-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: #f2c94c;
  margin-top: 0.15rem;
}

/* ---------- Card panel ---------- */
.card-panel {
  min-height: 300px;
}

.empty-state {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.7;
}

.player-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem 2rem 2.75rem;
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.card-watermark {
  position: absolute;
  bottom: 0.85rem;
  right: 2rem;
  font-family: 'Anton', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

@media (max-width: 900px) {
  .player-card {
    flex-direction: column;
  }
}

.card-side {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-right: 2rem;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
  .card-side {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  }
}

.card-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.card-name {
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ---------- Stat rows / sliders ---------- */
.stat-rows {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.5rem;
  align-content: start;
}

@media (max-width: 700px) {
  .stat-rows {
    grid-template-columns: 1fr;
  }
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.stat-label {
  opacity: 0.75;
}

.stat-value {
  font-size: 1.1rem;
  color: #ffffff;
}

.stat-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.35);
}

.stat-fill.stat-good {
  background: #4cd787;
}

.stat-fill.stat-bad {
  background: #e2665b;
}

.stat-avg-marker {
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -4px;
  width: 3px;
  transform: translateX(-50%);
  background: #f2c94c;
  border-radius: 2px;
}

.stat-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #125740;
  box-shadow: 0 0 0 2px #ffffff;
  transform: translate(-50%, -50%);
}

.stat-thumb.stat-good {
  border-color: #1c7a45;
  box-shadow: 0 0 0 2px #4cd787;
}

.stat-thumb.stat-bad {
  border-color: #8a2a22;
  box-shadow: 0 0 0 2px #e2665b;
}

.stat-row-bottom {
  display: flex;
  justify-content: flex-end;
  font-family: 'Anton', sans-serif;
  text-transform: none;
  font-size: 0.72rem;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* ---------- Season selector ---------- */
.year-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.year-bar-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.year-select {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.year-select:hover {
  background: rgba(255, 255, 255, 0.14);
}

.year-select:focus {
  outline: 2px solid #f2c94c;
  outline-offset: 2px;
}

.year-select option {
  background: #125740;
  color: #ffffff;
}


/* ---------- Player Stats dropdown ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 0.2rem;
  margin: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.nav-dropdown-trigger:hover {
  opacity: 0.9;
}

.nav-dropdown-trigger.active {
  opacity: 1;
  border-bottom-color: #f2c94c;
}

.nav-dropdown-caret {
  font-size: 0.7em;
  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.9rem;
  background: #0e4934;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 200px;
  max-width: calc(100vw - 2rem);
  z-index: 30;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.nav-dropdown-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-link.active {
  opacity: 1;
  color: #f2c94c;
}

.nav-dropdown-trigger:focus-visible,
.nav-dropdown-link:focus-visible {
  outline: 2px solid #f2c94c;
  outline-offset: 2px;
}


