/* =========================================================
   PHL — Classement des équipes
   Fichier: phl-standings.css
   ========================================================= */

:root{
  --phl-accent: #ff00b8;
  --phl-accent2: #5a00b4;
  --phl-bg-soft: rgba(255,255,255,.04);
  --phl-border: rgba(255,255,255,.12);
  --phl-text: rgba(255,255,255,.92);
  --phl-muted: rgba(255,255,255,.65);
}

/* ----- Container ----- */
.phl-wrapper .container{
  max-width: 60%;
}

/* ----- Title ----- */
h2{
  font-weight: 800;
  letter-spacing: .3px;
}

/* ----- Table ----- */
.table{
  border-radius: 16px;
  overflow: hidden;
  border-color: var(--phl-border) !important;
}

.table thead th{
  background: rgba(0,0,0,.55) !important;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  letter-spacing: .25px;
  text-transform: uppercase;
  font-weight: 800;
  padding: .9rem .6rem;
  border-bottom: 1px solid var(--phl-border) !important;
}

.table tbody td{
  padding: .75rem .6rem;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--phl-text);
}

/* Zebra */
.table-striped>tbody>tr:nth-of-type(odd)>*{
  --bs-table-accent-bg: rgba(255,255,255,.03);
}

/* Hover */
.table-hover>tbody>tr:hover>*{
  --bs-table-accent-bg: rgba(255,0,184,.06);
}

/* ----- Rank column ----- */
.table td:first-child{
  font-weight: 900;
  color: #fff;
}

/* ----- Team column ----- */
.table td.text-start{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

/* Logo */
.team-logo{
  height: 42px;
  width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* ----- Goal diff ----- */
.table td:nth-last-child(2){
  font-weight: 700;
}

.table td:nth-last-child(2):not(:contains('-')){
  color: #7CFF7C;
}

/* ----- Points ----- */
td.points{
  font-weight: 900;
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(255,0,184,.22),
    rgba(90,0,180,.22)
  );
  border-left: 1px solid rgba(255,0,184,.25) !important;
}

/* =========================================================
   BONUS — Badges + Séparateurs + Animation
   ========================================================= */

/* Rang: badge + numéro */
.rank-cell{
  white-space: nowrap;
  font-weight: 900;
}

.rank-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  font-size: 1.05rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

.rank-num{
  display: inline-block;
  min-width: 18px;
  text-align: left;
}

/* Team cell (logo + nom) */
.team-cell{
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-name{
  font-weight: 800;
  letter-spacing: .15px;
}

/* Goal diff color */
.gd-pos{ color: rgba(124,255,124,.95) !important; font-weight: 800; }
.gd-neg{ color: rgba(255,120,120,.92) !important; font-weight: 800; }
.gd-zero{ color: rgba(255,255,255,.70) !important; font-weight: 700; }

/* Séparateur après chaque tranche de 5 */
.group-sep-row td{
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.group-sep-cell{
  padding: 0 !important;
}

.group-sep-line{
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,0,184,.28),
    rgba(90,0,180,.28),
    rgba(255,255,255,0)
  );
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  margin: 10px 0;
}

/* Animation légère des lignes */
.standings-row.animate-in{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
  transition-delay: var(--delay, 0ms);
}

.standings-row.animate-in.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Accessibilité: si réduction des animations */
@media (prefers-reduced-motion: reduce){
  .standings-row.animate-in{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ----- Responsive ----- */
@media (max-width: 991px){
  .table{
    font-size: .9rem;
  }
  .team-logo{
    height: 36px;
    width: 36px;
  }
}

@media (max-width: 480px){
  h2{
    font-size: 1.35rem;
  }
  .table{
    font-size: .85rem;
  }
}
