/* =========================
   LADDER – COMPETITIVE STYLE
========================= */

.ladder-wrapper {
  background: linear-gradient(180deg, #0e0e11, #14141a);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.06);
}

/* TABLE */
.ladder-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 0.95rem;
}

/* HEADER */
.ladder-table thead th {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a9a9b3;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ROWS */
.ladder-table tbody tr {
  transition: background .2s ease, transform .15s ease;
}

.ladder-table tbody tr:hover {
  background: rgba(255,255,255,.03);
  transform: scale(1.01);
}

/* CELLS */
.ladder-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

/* RANK COLUMN */
.rank-col {
  width: 60px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* TEAM COLUMN */
.team-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: #1c1c24;
}

.team-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f1f2a, #2a2a36);
}

.team-name {
  font-weight: 600;
  letter-spacing: .02em;
}

/* STATS */
.points-col {
  text-align: right;
  font-weight: 800;
  color: #facc15; /* gold */
}

.wins-col {
  text-align: center;
  color: #22c55e;
  font-weight: 700;
}

.losses-col {
  text-align: center;
  color: #ef4444;
  font-weight: 700;
}

/* TOP 3 HIGHLIGHT */
.rank-1 {
  background: linear-gradient(
    90deg,
    rgba(250,204,21,.15),
    transparent
  );
}

.rank-2 {
  background: linear-gradient(
    90deg,
    rgba(203,213,225,.12),
    transparent
  );
}

.rank-3 {
  background: linear-gradient(
    90deg,
    rgba(251,146,60,.12),
    transparent
  );
}

/* EMPTY STATE */
.empty-ladder {
  padding: 30px;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
}

/* MOBILE */
@media (max-width: 768px) {
  .wins-col,
  .losses-col {
    display: none;
  }

  .ladder-table thead th:nth-child(4),
  .ladder-table thead th:nth-child(5) {
    display: none;
  }
}
