/* ============================================================
   SCHEDULE GAME — schedule-game.css
   Add <link> in index.html head
   ============================================================ */

/* ── Step indicator ─────────────────────────────────────────── */
.sg-step-indicator {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light, #93c5fd);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

/* ── Lineup size stepper ────────────────────────────────────── */
.sg-lineup-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.sg-size-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border, #1e3a5a);
  background: var(--surface-raised, #162032);
  color: var(--accent-light, #93c5fd);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-size-btn:hover { background: var(--accent, #1d4ed8); color: #fff; }

#sg-lineup-size-display {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #e2e8f0);
  min-width: 28px;
  text-align: center;
}

/* ── Lineup builder layout ──────────────────────────────────── */
.sg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  max-height: 380px;
}

.sg-order-col,
.sg-players-col {
  overflow-y: auto;
  padding-right: 4px;
}

.sg-col-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 8px;
}

/* ── Order slots ────────────────────────────────────────────── */
.sg-order-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #1e3a5a);
  background: var(--surface-raised, #162032);
  margin-bottom: 5px;
  min-height: 38px;
}

.sg-order-slot--active {
  border-color: var(--accent, #1d4ed8);
  background: #0d2137;
}

.sg-order-slot--filled {
  border-color: #22c55e40;
  background: #0d2018;
}

.sg-slot-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light, #93c5fd);
  min-width: 18px;
}

.sg-slot-player {
  font-size: 13px;
  color: var(--text, #e2e8f0);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-slot-empty {
  font-size: 12px;
  color: var(--text-muted, #475569);
  flex: 1;
  font-style: italic;
}

.sg-slot-remove {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  flex-shrink: 0;
}

/* ── Player pills ───────────────────────────────────────────── */
.sg-player-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #1e3a5a);
  background: var(--surface-raised, #162032);
  margin-bottom: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.sg-player-pill:hover {
  background: #1d4ed820;
  border-color: var(--accent, #1d4ed8);
}

.sg-pill-number {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  min-width: 24px;
}

.sg-pill-name {
  font-size: 13px;
  color: var(--text, #e2e8f0);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-pill-pos {
  font-size: 11px;
  color: var(--text-muted, #64748b);
}

.sg-bench-btn {
  background: none;
  border: 1px solid var(--border, #1e3a5a);
  border-radius: 4px;
  color: var(--text-muted, #64748b);
  font-size: 11px;
  padding: 2px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.sg-bench-btn:hover { color: #f87171; border-color: #f87171; }

.sg-all-assigned {
  font-size: 12px;
  color: #22c55e;
  padding: 8px 0;
  text-align: center;
}

/* ── Bench section ──────────────────────────────────────────── */
.sg-bench-section {
  border-top: 1px solid var(--border, #1e3a5a);
  padding-top: 10px;
  margin-bottom: 12px;
}

.sg-bench-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sg-bench-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--surface-raised, #162032);
  border: 1px solid var(--border, #1e3a5a);
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.sg-unbench-btn {
  background: none;
  border: none;
  color: #93c5fd;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

/* ── Confirm summary ────────────────────────────────────────── */
.sg-confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.sg-confirm-block {
  background: var(--surface-raised, #162032);
  border: 1px solid var(--border, #1e3a5a);
  border-radius: 10px;
  padding: 12px 14px;
}

.sg-confirm-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light, #93c5fd);
  margin-bottom: 6px;
}

.sg-confirm-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #e2e8f0);
}

.sg-confirm-meta {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.sg-confirm-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text, #e2e8f0);
  border-bottom: 1px solid var(--border, #1e3a5a);
}

.sg-confirm-player:last-child { border-bottom: none; }

.sg-confirm-spot {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light, #93c5fd);
  min-width: 20px;
}

/* ── Games list — scheduled game styling ────────────────────── */
.game-row--scheduled {
  border-left: 3px solid var(--accent, #1d4ed8);
  opacity: 0.9;
}

.game-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: #1d4ed820;
  color: #93c5fd;
  border: 1px solid #1d4ed8;
}

.game-status-badge--live {
  background: #14532d40;
  color: #86efac;
  border-color: #22c55e;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .sg-layout {
    grid-template-columns: 1fr;
    max-height: 500px;
  }
}