/* Styles du Podium Rétro 3D - ClaudIA's Web Game Jam */

.podium-section {
  max-width: 1200px;
  margin: 0 auto;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  max-width: 960px;
}

/* Quand il y a des champions sur le podium */
.podium-container:not(.podium-empty) {
  min-height: 480px;
  margin: 40px auto 30px auto;
}

/* Quand le podium est vide (en attente de notes) : même taille compacte que les jeux */
.podium-container.podium-empty {
  min-height: auto;
  align-items: center;
  margin: 0 auto;
}

/* Colonnes individuelles du podium */
.podium-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.podium-step:hover {
  transform: translateY(-6px);
}

/* Piédestaux 3D Pixel */
.podium-base {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-retro);
  font-size: 26px;
  text-shadow: 2px 2px #000;
  border-top: 5px solid;
  border-left: 4px solid;
  border-right: 6px solid rgba(0, 0, 0, 0.6);
  border-bottom: 8px solid rgba(0, 0, 0, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* 🥇 1ère Place : Or (Centre, surélevé) */
.podium-first {
  order: 2;
  z-index: 3;
}
.podium-first .podium-base {
  height: 220px;
  background: linear-gradient(180deg, #ffd32a 0%, #e1b12c 60%, #b38b16 100%);
  color: #1a1a2e;
  border-color: #ffeaa7;
  box-shadow: 0 0 35px rgba(255, 211, 42, 0.45);
}
.podium-first .podium-crown {
  position: absolute;
  top: -46px;
  font-size: 34px;
  animation: floatCrown 2.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px #ffd32a);
}

/* 🥈 2ème Place : Argent (Gauche) */
.podium-second {
  order: 1;
  z-index: 2;
}
.podium-second .podium-base {
  height: 160px;
  background: linear-gradient(180deg, #dcdde1 0%, #718093 100%);
  color: #111428;
  border-color: #f5f6fa;
  box-shadow: 0 0 20px rgba(220, 221, 225, 0.3);
}

/* 🥉 3ème Place : Bronze (Droite) */
.podium-third {
  order: 3;
  z-index: 2;
}
.podium-third .podium-base {
  height: 120px;
  background: linear-gradient(180deg, #e67e22 0%, #a04000 100%);
  color: #fff;
  border-color: #f39c12;
  box-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
}

/* Carte du jeu posée sur le podium */
.podium-game-card {
  width: 100%;
  background: #14162e;
  border: 2px solid #272a56;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.podium-first .podium-game-card {
  border-color: #ffd32a;
  box-shadow: 0 0 25px rgba(255, 211, 42, 0.35);
}

.podium-banner-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio 16:9 */
  background: #090a18;
  overflow: hidden;
}

.podium-banner-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.podium-game-card:hover .podium-banner-img {
  transform: scale(1.05);
}

.podium-game-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.podium-game-title {
  font-family: var(--font-retro);
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-dev {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a4b0be;
}

.podium-dev-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--cyan-ia);
}

.podium-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-retro);
  font-size: 10px;
  background: rgba(255, 211, 42, 0.15);
  border: 1px solid #ffd32a;
  color: #ffd32a;
}

.podium-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* Animation de la couronne de la 1ère place */
@keyframes floatCrown {
  0% { transform: translateY(0px) rotate(-3deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

/* Tableau de classement complet (au-dessous du podium) */
.leaderboard-table-container {
  background: #12142a;
  border: 2px solid #23274e;
  border-radius: 10px;
  padding: 24px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.leaderboard-table th {
  font-family: var(--font-retro);
  font-size: 10px;
  color: #747d8c;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #23274e;
}

.leaderboard-row {
  background: #171936;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.leaderboard-row:hover {
  background: #1f2249;
  transform: translateX(4px);
}

.leaderboard-row td {
  padding: 12px 14px;
  vertical-align: middle;
}

.rank-badge {
  font-family: var(--font-retro);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #23274e;
  color: #fff;
}

.rank-1 { background: #ffd32a; color: #000; box-shadow: 0 0 10px rgba(255, 211, 42, 0.6); }
.rank-2 { background: #dcdde1; color: #000; }
.rank-3 { background: #e67e22; color: #fff; }

.criteria-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 180px;
}

.crit-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #a4b0be;
}

.crit-bar-bg {
  flex: 1;
  height: 5px;
  background: #090a18;
  border-radius: 3px;
  overflow: hidden;
}

.crit-bar-fill {
  height: 100%;
  border-radius: 3px;
}

/* Responsiveness du podium */
@media (max-width: 800px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
    min-height: auto;
  }
  .podium-step {
    width: 100%;
    max-width: 340px;
  }
  .podium-first { order: 1; }
  .podium-second { order: 2; }
  .podium-third { order: 3; }
  .podium-base { height: 70px !important; }
}
