/* ===== HOF HEADER ===== */
.hof-header {
  padding: 130px 20px 64px;
  text-align: center;
  position: relative;
}
.hof-crown-icon {
  color: var(--gold-l);
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.hof-title {
  font-family: var(--font-head);
  font-size: 3.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  margin-bottom: 20px;
}
.hof-title em { font-style: normal; color: var(--purple-l); }
.hof-sep {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  margin: 0 auto 20px;
}
.hof-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== TABLE SECTION ===== */
.hof-section {
  padding: 0 0 100px;
}
.hof-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Column grid: icon | team | event | m1 | m2 | m3 | total | gain | toggle */
.hof-cols {
  display: grid;
  grid-template-columns: 52px 1fr 140px 80px 80px 80px 110px 100px 44px;
  align-items: center;
}

/* THEAD */
.hof-thead {
  padding: 0 20px;
  margin-bottom: 10px;
}
.hof-th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 6px;
}
.hof-th.tc { text-align: center; }

/* ROW */
.hof-row {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(201,151,42,0.18);
  border-radius: 2px;
  margin-bottom: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.hof-row:hover { border-color: rgba(201,151,42,0.4); }

/* Corner brackets */
.hof-row::before,
.hof-row::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
}
.hof-row::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold-l);
  border-left: 2px solid var(--gold-l);
}
.hof-row::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold-l);
  border-right: 2px solid var(--gold-l);
}

/* TD cells */
.hof-td { padding: 0 6px; }
.hof-td.tc { text-align: center; }

/* Trophy icon */
.td-icon { display: flex; align-items: center; justify-content: center; }
.td-icon svg { color: var(--gold-l); }

/* Team cell */
.team-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}
.team-edition {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Event cell */
.td-event {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
}
.td-event svg { color: var(--muted); flex-shrink: 0; }

/* Match scores */
.td-match {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

/* Total */
.td-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.td-total svg { color: var(--purple-l); flex-shrink: 0; }
.total-val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple-l);
}

/* Gain */
.td-gain {
  text-align: center;
}
.gain-val {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-l);
  letter-spacing: 0.04em;
}
.gain-none {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(122,110,153,0.4);
}

/* TOGGLE BUTTON */
.td-toggle { display: flex; align-items: center; justify-content: center; }
.hof-toggle-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(155,48,255,.1); border: 1px solid rgba(155,48,255,.3);
  color: var(--purple-l); cursor: pointer; font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
}
.hof-toggle-btn:hover { background: rgba(155,48,255,.22); border-color: var(--purple-l); }
.hof-entry.open .hof-toggle-btn { transform: rotate(45deg); }

/* EXPAND PANEL */
.hof-expand {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.hof-expand.open {
  max-height: 2000px;
  background: rgba(155,48,255,.04);
  border: 1px solid rgba(155,48,255,.10);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.hof-expand-inner {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  border-top: none; border-radius: 0 0 2px 2px;
  padding: 4px 0 4px;
  margin-bottom: 10px;
}

/* Other teams rows */
.hof-other-row {
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .15s;
}
.hof-other-row:last-child { border-bottom: none; }
.hof-other-row:hover { background: rgba(255,255,255,.02); }

.hof-other-rank {
  font-family: var(--font-mono); font-size: .62rem; color: var(--muted);
  text-align: center;
}
.hof-other-name {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: var(--text); letter-spacing: .03em; padding: 0 6px;
}
.hof-other-score {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text);
  text-align: center;
}
.hof-other-total {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-mono); font-size: .82rem; color: var(--muted);
}

/* EMPTY */
.hof-empty {
  text-align: center;
  padding: 80px 20px;
}
.hof-empty-icon { color: rgba(201,151,42,0.15); display: flex; justify-content: center; margin-bottom: 18px; }
.hof-empty-title {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.hof-empty-sub { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(122,110,153,0.5); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hof-cols { grid-template-columns: 44px 1fr 110px 64px 64px 64px 90px 80px 40px; }
  .hof-container { padding: 0 16px; }
}

@media (max-width: 700px) {
  .hof-header { padding: 110px 20px 48px; }
  .hof-title { font-size: 2.6rem; }
  .hof-container { padding: 0 12px; }

  /* Masquer l'en-tête de tableau */
  .hof-thead { display: none; }

  /* Chaque ligne = carte à 3 colonnes : [icône] [infos] [gain/toggle] */
  .hof-row.hof-cols {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 6px;
    padding: 14px 16px;
    align-items: start;
  }

  /* Trophée — span 3 lignes à gauche */
  .hof-row > .td-icon {
    grid-column: 1; grid-row: 1 / 4;
    padding: 0; justify-content: flex-start; padding-top: 2px;
  }

  /* Nom + édition — ligne 1 */
  .hof-row > .hof-td:nth-child(2) {
    grid-column: 2; grid-row: 1; padding: 0;
  }

  /* Date — ligne 2 */
  .hof-row > .td-event {
    grid-column: 2; grid-row: 2; padding: 0; font-size: 0.7rem;
  }

  /* Scores individuels masqués */
  .hof-row > .td-match { display: none; }

  /* Total — ligne 3 */
  .hof-row > .td-total {
    grid-column: 2; grid-row: 3; padding: 0; justify-content: flex-start;
  }

  /* Gain — col 3, ligne 1 */
  .hof-row > .td-gain {
    grid-column: 3; grid-row: 1; padding: 0; text-align: right;
  }

  /* Bouton expand — col 3, lignes 2-3 */
  .hof-row > .td-toggle {
    grid-column: 3; grid-row: 2 / 4; padding: 0; align-self: center;
  }

  /* Masquer la cellule vide finale quand pas de toggle */
  .hof-row > .hof-td:last-child:not(.td-toggle) { display: none; }

  .team-name { font-size: 0.9rem; }

  /* Lignes du panel expand */
  .hof-other-row.hof-cols {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    column-gap: 12px;
    padding: 8px 16px;
    align-items: center;
  }

  .hof-other-row > .hof-other-rank  { grid-column: 1; grid-row: 1; }
  .hof-other-row > .hof-other-name  { grid-column: 2; grid-row: 1; padding: 0; }
  .hof-other-row > .hof-other-total { grid-column: 3; grid-row: 1; }
  .hof-other-row > .hof-other-score { display: none; }
  /* Colonnes vides (date, gain, toggle) */
  .hof-other-row > div:nth-child(3),
  .hof-other-row > div:nth-child(8),
  .hof-other-row > div:nth-child(9) { display: none; }
}
