/* ============================================================
   HALL OF FAME — Estilos del Salón de la Fama
   ============================================================ */

.hall-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hall-loading,
.hall-error,
.hall-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.hall-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.hall-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.hall-empty-sub {
  font-size: 0.9rem;
}

.hall-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 32px 0 16px;
  color: var(--text-bright);
}

/* Records Grid */
.hall-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.hall-record-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hall-record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hall-record-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.hall-record-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.hall-record-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.hall-record-team {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.hall-record-player {
  font-size: 0.85rem;
  color: var(--celeste);
  margin-bottom: 8px;
}

.hall-record-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Stats Grid */
.hall-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.hall-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.hall-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.hall-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Campeones List */
.hall-campeones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hall-campeon-row {
  display: grid;
  grid-template-columns: 40px 1fr auto 60px;
  gap: 16px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  transition: background 0.2s ease;
}

.hall-campeon-row:hover {
  background: var(--bg-tertiary);
}

.hall-campeon-pos {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  text-align: center;
}

.hall-campeon-info {
  min-width: 0;
}

.hall-campeon-team {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-campeon-player {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hall-campeon-stats {
  text-align: right;
}

.hall-campeon-record {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
}

.hall-campeon-goles {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hall-campeon-overall {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--celeste);
  text-align: center;
}

/* Notificación de nuevo récord */
.hall-notif {
  position: fixed;
  top: 80px;
  right: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #daa520 100%);
  color: #000;
  border-radius: 12px;
  padding: 20px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(218, 165, 32, 0.4);
  z-index: 10000;
  animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hall-notif-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.hall-notif-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hall-notif-records {
  margin-bottom: 16px;
}

.hall-notif-record {
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hall-notif-record:last-child {
  border-bottom: none;
}

.hall-notif-btn {
  width: 100%;
  padding: 10px;
  background: #000;
  color: var(--gold);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hall-notif-btn:hover {
  background: #222;
}

/* Tabs */
.hall-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 20px;
  flex-wrap: wrap;
}

.hall-tab-btn {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hall-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-bright);
}

.hall-tab-btn.active {
  background: var(--azul, #1a73e8);
  border-color: var(--azul, #1a73e8);
  color: #fff;
}

.hall-tab-main {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hall-tab-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.hall-tab-btn.active .hall-tab-sub {
  opacity: 1;
}

.hall-tab-content {
  display: none;
}

.hall-tab-content.active {
  display: block;
}

/* Empty record card */
.hall-record-card--empty {
  opacity: 0.45;
}

.hall-record-value--empty {
  color: var(--text-dim);
  font-size: 1.8rem;
}

.hall-record-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Campeón badges */
.hall-campeon-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.hall-campeon-badge--copa {
  background: rgba(var(--azul-rgb, 26, 115, 232), 0.15);
  color: var(--azul, #1a73e8);
  border: 1px solid rgba(var(--azul-rgb, 26, 115, 232), 0.3);
}

.hall-campeon-badge--liga {
  background: rgba(var(--green-rgb, 52, 168, 83), 0.15);
  color: var(--green, #34a853);
  border: 1px solid rgba(var(--green-rgb, 52, 168, 83), 0.3);
}

.hall-campeon-badge--memoria {
  background: rgba(218, 165, 32, 0.15);
  color: var(--gold, #daa520);
  border: 1px solid rgba(218, 165, 32, 0.3);
}

.hall-campeon-fecha {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .hall-records-grid {
    grid-template-columns: 1fr;
  }

  .hall-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hall-campeon-row {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }

  .hall-campeon-stats,
  .hall-campeon-overall {
    display: none;
  }

  .hall-notif {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ── Notificación de récord: cierre y salida ── */
.hall-notif { transition: opacity 0.35s ease, transform 0.35s ease; }
.hall-notif.saliendo { opacity: 0; transform: translateX(40px); pointer-events: none; }
.hall-notif-close {
  position: absolute;
  top: 8px; right: 10px;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  line-height: 1;
}
.hall-notif-close:hover { background: rgba(0,0,0,0.3); }

/* Mobile: banner compacto que no tapa media pantalla */
@media (max-width: 520px) {
  .hall-notif {
    top: 62px;
    left: 12px; right: 12px;
    max-width: none;
    padding: 12px 14px;
  }
  .hall-notif-icon { font-size: 1.6rem; margin-bottom: 4px; }
  .hall-notif-title { font-size: 0.9rem; }
  .hall-notif-record { font-size: 0.78rem; }
  .hall-notif-btn { padding: 8px 12px; font-size: 0.78rem; }
}
