/* ==========================================================================
   BULLDROP — Top players page
   Podium · leaderboard table · best drops grid · guest empty state
   Depends on shared.css tokens.
   ========================================================================== */

/* ---------- Podium ---------- */
.podium { margin-bottom: 40px; }

.podium__list {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: end;
  gap: 16px;
}

.podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 18px 22px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--bg-surface-2), var(--bg-surface));
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.podium-card[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.podium-card[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.podium-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

/* Winner sits taller and gets the gold treatment */
.podium-card--1 {
  padding-top: 34px;
  padding-bottom: 30px;
  border-color: rgba(255, 176, 46, 0.4);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 176, 46, 0.2), transparent 62%),
    linear-gradient(170deg, var(--bg-surface-2), var(--bg-surface));
}
.podium-card--2 { border-color: rgba(226, 232, 240, 0.22); }
.podium-card--3 { border-color: rgba(224, 162, 115, 0.24); }

.podium-card__rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  background: var(--glass-2);
  color: var(--text-mute);
}
.podium-card--1 .podium-card__rank {
  background: linear-gradient(180deg, #ffd76a, #f5a623);
  color: #2a1a02;
}
.podium-card--2 .podium-card__rank {
  background: linear-gradient(180deg, #e2e8f0, #a8b3c4);
  color: #1b2028;
}
.podium-card--3 .podium-card__rank {
  background: linear-gradient(180deg, #e0a273, #b9713c);
  color: #26140a;
}

.podium-card__avatar {
  width: 68px;
  height: 68px;
  margin: 6px 0 4px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
}
.podium-card--1 .podium-card__avatar {
  width: 84px;
  height: 84px;
  border-color: rgba(255, 176, 46, 0.6);
}

.podium-card__nick { font-size: 15px; }
.podium-card__label { color: var(--text-dim); font-size: 11.5px; }
.podium-card__sum {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- Leaderboard table ---------- */
.board { margin-bottom: 40px; }

.board__scroll {
  overflow-x: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-surface);
}

.board__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.board__table th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.board__table th:last-child,
.board__table td:last-child { text-align: right; }

.board__table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.board__table tbody tr:last-child td { border-bottom: 0; }
.board__table tbody tr { transition: background-color var(--t) var(--ease); }
.board__table tbody tr:hover { background: var(--glass); }

.board__rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass-2);
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 800;
}
.board__rank--1 { background: linear-gradient(180deg, #ffd76a, #f5a623); color: #2a1a02; }
.board__rank--2 { background: linear-gradient(180deg, #e2e8f0, #a8b3c4); color: #1b2028; }
.board__rank--3 { background: linear-gradient(180deg, #e0a273, #b9713c); color: #26140a; }

/* A <button> that opens the auth modal — restate the anchor defaults */
.board__player {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.board__player:hover span { color: var(--brand); }
.board__player img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.board__player span { font-weight: 600; }

.board__sum {
  color: var(--gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Best drops grid ---------- */
.best-drops { margin-bottom: 34px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 22px 20px 24px;
  border-radius: var(--r-2xl);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--bg-surface-2), var(--bg-surface));
  text-align: center;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.case-card[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.case-card[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--sh-lg);
}

.case-card__media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
  transition: transform var(--t-slow) var(--ease-out);
}
.case-card:hover .case-card__media img { transform: scale(1.07) translateY(-3px); }

.case-card__title {
  margin-bottom: 14px;
  font-size: 14.5px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.case-card__price {
  margin-top: auto;
  padding: 10px 24px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--gold-hover), var(--gold));
  color: #241703;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    filter var(--t) var(--ease);
}
.case-card__price:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: var(--sh-gold);
}

/* ---------- Guest empty state ---------- */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 46px 26px;
  margin-bottom: 20px;
  border-radius: var(--r-xl);
  border: 1px dashed var(--line-strong);
  background: var(--bg-surface);
  text-align: center;
}
.empty-state__title { font-size: 17px; }
.empty-state__text {
  margin-bottom: 8px;
  color: var(--text-mute);
  font-size: 13.5px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Stack the podium so the winner reads first */
  .podium__list { grid-template-columns: 1fr; }
  .podium-card--1 { order: -1; }
}

@media (max-width: 480px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .empty-state { padding: 34px 18px; }
}
