/* /css/hof.css
   Thème F1 stylisé — cartes sombres mesurées, damier, drapeau SVG, animation 1re place,
   résumé top pilotes en grille (jusqu'à 6), noms d'events en rouge gras + taille augmentée.
*/

:root{
  --bg: #0f1316;             /* not used for body here but kept for variables */
  --panel-1: #232629;        /* carte sombre (non noire) */
  --panel-2: #1f2224;        /* gradient secondaire */
  --text-light: #f5f6f7;
  --muted: #9aa3ad;
  --accent: #e10613;         /* F1 red */
  --metal: #c6c9cc;
  --gold: #d4af37;
  --silver-start: #f0f3f6;
  --silver-end: #bfc9d2;
  --bronze-start: #ffe8d6;
  --bronze-end: #f0a76b;
  --glass: rgba(255,255,255,0.02);
  --radius: 12px;
  --pad: 16px;
  --gap: 18px;
  --max-width: 1200px;
  --shadow-soft: 0 12px 36px rgba(3,6,8,0.45);
  --shadow-hover: 0 24px 56px rgba(2,4,8,0.64);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Page shell - changed to a light, neutral page background only */
body {
  margin: 0;
  background: linear-gradient(180deg, #eef2f5 0%, #e2e7eb 60%);
  color: var(--text-light);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.hof--light { padding: 28px 16px 42px; }

/* Header */
.hof__header { max-width: var(--max-width); margin: 0 auto 9px; text-align: center; }

.hof__title {
  font-family: "Orbitron", "Montserrat", sans-serif;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: clamp(26px, 4.4vw, 48px);
  margin: 0 0 8px;
}
.hof__subtitle { display: none; } /* retiré */

/* Summary top pilots - grid (6 items supported) */
.hof__summary { max-width: var(--max-width); margin: 14px auto; padding: 0 6px; }
.hof__summary-title { color: var(--muted); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; font-weight: 700; }

/* grid: 3 columns first row, wraps to second row — supports 6 items */
.hof__summary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 1000px) { .hof__summary-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hof__summary-list { grid-template-columns: 1fr; } }

.hof__summary-item {
  background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 24px rgba(2,4,8,0.52);
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: transform .12s ease;
}
.hof__summary-item:hover { transform: translateY(-4px); }
.hof__summary-item[title] { cursor: help; }
.tp__name { color: var(--text-light); font-weight: 800; margin: 0; }
.tp__count { color: var(--accent); font-weight: 900; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 8px; }

/* Controls (search inputs) */
.hof__controls {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hof__search {
  flex: 1 1 420px;
  min-width: 180px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(11,13,15,0.06);
  font-weight: 600;
  color: #0b0d0e;
}
.hof__search::placeholder { color: #7f8b92; }

/* Grid of event cards */
.hof__grid {
  max-width: var(--max-width);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  align-items: start;
}

/* Card (darker but balanced) */
.hof__card--light {
  border-radius: var(--radius);
  padding: var(--pad);
  background: linear-gradient(180deg, #232629, #1f2224); /* plus sombre */
  color: var(--text-light);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}



/* Championship name: red bold + larger (+2 size relative) */
.hof__card--light .hof__event {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--accent);
  font-size: 1.125rem; /* +2 relative */
  z-index: 3;
}
.hof__card--light .hof__event::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  box-shadow: 0 6px 14px rgba(225,16,19,0.08);
}

/* subtle diagonal track pattern */
.hof__card--light::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -26%;
  width: 220%;
  height: 60%;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 6px, rgba(0,0,0,0.00) 6px 12px);
  transform: rotate(14deg);
  opacity: 0.12;
  pointer-events: none;
}

/* hover/focus */
.hof__card--light:focus,
.hof__card--light:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

/* Podium list */
.hof__podium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 4;
}

/* Position item */
.pos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border: 1px solid rgba(255,255,255,0.02);
}

/* base rank styling */
.pos__rank {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #eef0f2, #d7dadd);
  color: #0b0d0e;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  position: relative;
}

/* avatar */
.pos__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,0.03);
  background: #ffffff;
}

/* name */
.pos__name {
  font-weight: 800;
  color: var(--text-light);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* OR / ARGENT / BRONZE variants */

/* 1st place - OR */
.pos--1 .pos__rank {
  background: linear-gradient(180deg, #fff8e6, var(--gold));
  color: #0b0d0e;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 12px 28px rgba(212,175,55,0.14);
  animation: hof-first-pulse 1.8s ease-in-out infinite;
}
@keyframes hof-first-pulse {
  0% { transform: translateY(0); box-shadow: 0 10px 24px rgba(212,175,55,0.10); }
  50% { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(212,175,55,0.18); }
  100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(212,175,55,0.10); }
}
/* small star badge */
.pos--1 .pos__rank::after {
  content: "★";
  position: absolute;
  top: -8px;
  right: -8px;
  color: var(--gold);
  font-size: 14px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* 2nd place - ARGENT */
.pos--2 .pos__rank {
  background: linear-gradient(180deg, var(--silver-start), var(--silver-end));
  color: #0b0d0e;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(100,110,120,0.08);
}

/* 3rd place - BRONZE */
.pos--3 .pos__rank {
  background: linear-gradient(180deg, var(--bronze-start), var(--bronze-end));
  color: #0b0d0e;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(140,95,50,0.08);
}

/* date meta */
.hof__date { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 700; }

/* hide for filter */
.hof__card--hidden { display: none !important; }

/* responsive tweaks */
@media (max-width: 920px) {
  .hof__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .hof__summary-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hof__summary-list { grid-template-columns: 1fr; }
  .hof__controls { flex-direction: column; gap: 10px; }
  .pos__rank { width: 46px; height: 46px; }
  .pos__avatar { width: 40px; height: 40px; border-radius: 6px; }
}
/* accent pour le titre "Pilotes les plus titrés" (rouge gras) */
.hof__summary-title--accent {
  color: var(--accent);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* petite utilité pour label caché (accessibility) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
