/* ==========================================================
   ranking.css — Tela de Ranking
   ========================================================== */

/* ── Estados sem resultado / erro ── */
.ranking-no-results {
  text-align: center;
  color: #666;
  font-family: monospace;
  padding: 20px 0;
}
.ranking-error { color: red; }

/* ── Card de jogador ── */
/* background, border e box-shadow são dinâmicos (por posição) — ficam no JS */
.ranking-card-premium {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

/* ── Avatar ── */
/* border é dinâmico por posição — fica no JS */
.rk-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.rk-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  image-rendering: pixelated;
}

/* ── Info do jogador ── */
.rk-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
/* color é dinâmico por posição — fica no JS */
.rk-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.rk-stats {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: #a4b0be;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rk-stat-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  line-height: 1.2;
}
.rk-stat-row__icon { font-size: 11px; }
.rk-stat-row__text { font-size: 10px; }

.rk-stat-row--wins    { color: #2ecc71; }
.rk-stat-row--losses  { color: #ff7675; }
.rk-stat-row--defense { color: #3498db; }
.rk-stat-row--attacks { color: #ffcc00; }
.rk-stat-row--points  { color: #ffcc00; font-weight: 900; }
.rk-stat-row--points .rk-stat-row__text { font-size: 10.5px; letter-spacing: 0.2px; }

/* ── Posição / Medalha ── */
.rk-position {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 950;
  flex-shrink: 0;
}
.rk-position--medal {
  font-size: 26px;
  color: #fff;
  background: transparent;
  border: none;
}
.rk-position--num {
  font-size: 13px;
  color: #a4b0be;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
}

/* ── Paginação ── */
.rank-pag-btn {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 2px;
}
.rank-pag-btn--page { font-size: 11px; }
.rank-pag-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
