/* ════════════════════════════════════════════════════════════════════════════
   Sectorly v2 — styles/season.css
   ────────────────────────────────────────────────────────────────────────────
   Season tab (Brief F.13). Four sections: round tracker, editorial snapshot,
   championship standings, Season Wins & Whiffs. Feature-flagged hidden by
   default — see tab_bar.js's SEASON_TAB_FLAG_KEY.
   ════════════════════════════════════════════════════════════════════════════ */

.season-view .season-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.season-view .season-section:last-child {
  border-bottom: none;
}

.season-loading,
.season-error {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text2);
  font-size: 0.95rem;
}


/* ── Round tracker (Task 3) ─────────────────────────────────────────────── */

.srt-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.srt-header__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.srt-header__meta {
  color: var(--text2);
  font-size: 0.85rem;
  font-variant-numeric: var(--num-features);
}

.srt-dots {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.srt-dot {
  flex: 1 1 0;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
}

.srt-dot--done {
  background: var(--text2);
}

.srt-dot--current {
  background: var(--purple);
}

.srt-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text3);
}

.srt-label--current {
  color: var(--purple3);
  font-weight: 600;
  text-align: center;
}

.srt-label--last {
  text-align: right;
}


/* ── Editorial snapshot (Task 4) ────────────────────────────────────────── */

.se-empty {
  color: var(--text3);
  font-size: 0.9rem;
  text-align: center;
  padding: var(--space-4) 0;
}

.se-focus-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.se-headline {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.se-body {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.se-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.se-elsewhere-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: var(--space-3);
}

.se-other-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.se-other-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: var(--space-3);
}

.se-other-pill {
  justify-self: start;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  white-space: nowrap;
}

.se-other-line {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.4;
}


/* ── Championship standings (Task 5 + 7) ────────────────────────────────── */

.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ss-header__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.ss-staleness-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber, #f59e0b);
  background: color-mix(in srgb, var(--amber, #f59e0b) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber, #f59e0b) 35%, transparent);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.ss-class-block {
  margin-bottom: var(--space-6);
}

.ss-class-block:last-child {
  margin-bottom: 0;
}

.ss-class-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.ss-class-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.ss-class-fullname {
  color: var(--text3);
  font-size: 0.78rem;
}

.ss-row {
  display: grid;
  grid-template-columns: 32px auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius);
}

.ss-row--followed {
  background: color-mix(in srgb, var(--purple) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
}

.ss-row__pos {
  color: var(--text3);
  font-size: 0.78rem;
  font-variant-numeric: var(--num-features);
}

.ss-row__num {
  font-weight: 800;
  font-size: 0.9rem;
  font-variant-numeric: var(--num-features);
}

.ss-row__identity {
  min-width: 0;
}

.ss-row__drivers {
  font-weight: 600;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-row__team {
  color: var(--text3);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-row__points-block {
  text-align: right;
}

.ss-row__points {
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: var(--num-features);
}

.ss-row__points-context {
  font-size: 0.72rem;
  color: var(--text3);
}

.ss-row__points-context--leader {
  color: var(--green);
}

.ss-garage-divider {
  margin: var(--space-2) 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple3);
}


/* ── Season Wins & Whiffs (Task 6) ───────────────────────────────────────── */

.ww-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.ww-header__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.ww-header__meta {
  color: var(--text3);
  font-size: 0.78rem;
}

.ww-empty-season {
  border: 1px solid color-mix(in srgb, var(--purple) 30%, transparent);
  background: color-mix(in srgb, var(--purple) 6%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}

.ww-empty-icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}

.ww-empty-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.ww-empty-body {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 auto;
}
