/* ==========================================================================
   Season progress bar component
   Pair with components/season_progress.js, which renders into these classes.
   Include on any page that calls renderSeasonProgress()/syncSeasonProgressWidth().
   ========================================================================== */

.season-progress {
  margin-top: 16px;
  text-align: left;
}

.season-progress-bar {
  display: flex;
  width: 100%;
  height: 46px;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: #f0f0f0;
  box-sizing: border-box;
}

.season-progress-chunk {
  height: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation; /* skip the double-tap-to-zoom delay on mobile so a single tap registers immediately */
}

.season-progress-empty {
  color: #777;
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.season-progress-summary {
  margin-top: 6px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

/* ---------- season progress bar tooltip (per-sport team breakdown) ---------- */
.season-progress-tooltip {
  position: fixed;
  transform: translateX(-50%);
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 1000;
  pointer-events: auto;
  visibility: hidden;
  width: max-content;
  min-width: 180px;
  max-width: min(300px, calc(100vw - 16px));
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 12px;
}
.season-progress-tooltip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.season-progress-tooltip-sport {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.season-progress-tooltip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.season-progress-tooltip-fraction {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}
.season-progress-tooltip-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.season-progress-tooltip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  white-space: nowrap;
}
.season-progress-tooltip-team {
  overflow: hidden;
  text-overflow: ellipsis;
}
.season-progress-tooltip-manager {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  margin-left: 3px;
}
.season-progress-tooltip-points {
  font-weight: 700;
  flex-shrink: 0;
}
.season-progress-tooltip-empty {
  color: rgba(255, 255, 255, 0.55);
}
