/* ==========================================================================
   admin.css — Wizard de creación de torneo + utilidades del panel admin.
   Estilo: plano, legible, bordes pequeños, sin glass/blur. Usa los tokens
   definidos en styles.css (:root).
   ========================================================================== */

/* ── Modal del wizard ─────────────────────────────────────────────────── */
.modal--wizard {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Una sola columna: el contenido no se pega a la izquierda. */
.modal--wizard .modal-body { padding-top: 0.5rem; }
.modal--wizard #form-tournament { display: block; }

/* ── Indicador de pasos ──────────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.wizard-step-ind {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
  opacity: 0.5;
}
.wizard-step-ind.is-active { opacity: 1; }
.wizard-step-ind.is-done { opacity: 0.8; }
.wstep-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.wizard-step-ind.is-active .wstep-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--coffee-dark);
}
.wizard-step-ind.is-done .wstep-num {
  border-color: var(--accent-dim);
  color: var(--accent);
}
.wstep-txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.wstep-txt strong { font-size: 0.86rem; }
.wstep-txt small { font-size: 0.72rem; color: var(--text-muted); }

/* ── Paneles de paso ─────────────────────────────────────────────────── */
.wizard-panel { display: block; }
.wizard-panel[hidden] { display: none; }
.wizard-panel .form-group { margin-bottom: 1rem; }

.wizard-subhead {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 1.25rem 0 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.wizard-panel > .wizard-subhead:first-of-type { border-top: 0; padding-top: 0; margin-top: 0.25rem; }

.wizard-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.wizard-row-2 .form-group { margin-bottom: 0; }

.wizard-flow-hint {
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 0.83rem;
}
.wizard-flow-hint strong { color: var(--text); }

/* ── Paso 1: tarjetas de familia ─────────────────────────────────────── */
.wizard-family-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.6rem;
}
.wizard-family-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.8rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.wizard-family-card:hover { border-color: var(--border-light); }
.wizard-family-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.wfc-icon { font-size: 1.5rem; line-height: 1; }
.wfc-label { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.wfc-sports { font-size: 0.72rem; color: var(--text-muted); line-height: 1.25; }

/* ── Paso 2: tarjeta resumen del deporte ─────────────────────────────── */
.wizard-sport-summary {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.wss-icon { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.wss-body { min-width: 0; }
.wss-body h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.35rem; }
.wss-bullets { margin: 0; padding-left: 1.1rem; }
.wss-bullets li { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.wss-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--accent-dim);
}

/* ── Footer de navegación ────────────────────────────────────────────── */
.wizard-footer { justify-content: space-between; }
.wizard-footer-nav { display: flex; gap: 0.5rem; }

/* ── Hub público del complejo ────────────────────────────────────────── */
.bc-complejo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.bc-complejo-hero-main { min-width: 0; }
.bc-complejo-hero .bc-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent);
}
.bc-complejo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0.15rem 0 0.3rem;
}
.bc-complejo-hero p { margin: 0; }

/* ── Combobox de goleadores (filtro de jugadores al ingresar resultados) ─ */
.goal-player-pick { position: relative; min-width: 0; }
.goal-player-search { width: 100%; }
.goal-player-options {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.goal-player-option {
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.goal-player-option:hover,
.goal-player-option.is-selected {
  background: var(--accent-glow);
}
.goal-player-option.is-empty {
  cursor: default;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.goal-player-option[hidden] { display: none; }

/* ── Móvil: bottom sheet a ancho completo ────────────────────────────── */
@media (max-width: 768px) {
  .modal--wizard { max-width: 100%; }
  .wizard-steps { padding: 0.6rem 0.9rem; gap: 0.35rem; }
  .wstep-txt small { display: none; }
  .wizard-row-2 { grid-template-columns: 1fr; gap: 0; }
  .wizard-row-2 .form-group { margin-bottom: 1rem; }
  .wizard-footer { flex-direction: row; flex-wrap: wrap; }
  .wizard-footer-nav { flex: 1; justify-content: flex-end; }
}
