/* Leaderboards-specific styles - uses game-container from Game.css */

/* Header styles removed - using game-header from Game.css */

.game-main .leaderboards-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.stat-selector {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(107, 185, 240, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.stat-selector h3 {
  margin: 0 0 1rem 0;
  color: #6bb9f0;
  font-size: 1.2rem;
  text-align: center;
}

.stat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-option {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
  color: #fff;
  font-size: 1rem;
  text-align: left;
}

.stat-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.stat-option.active {
  background: rgba(107, 185, 240, 0.2);
  border-width: 2px;
  box-shadow: 0 0 10px rgba(107, 185, 240, 0.4);
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-label {
  font-weight: 600;
}

.leaderboard-content {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(107, 185, 240, 0.3);
  border-radius: 12px;
  padding: 2rem;
}

.leaderboard-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-icon {
  font-size: 2rem;
}

.leaderboard-title h2 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
}

.leaderboard-loading,
.leaderboard-error,
.leaderboard-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6bb9f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.leaderboard-error button {
  margin-top: 1rem;
  background: #6bb9f0;
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.leaderboard-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px 150px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-weight: 700;
  color: #6bb9f0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 150px;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  align-items: center;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  border-color: rgba(107, 185, 240, 0.5);
}

.table-row.rank-gold {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 215, 0, 0.4);
}

.table-row.rank-gold:hover {
  border-color: rgba(255, 215, 0, 0.7);
}

.table-row.rank-silver {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(192, 192, 192, 0.4);
}

.table-row.rank-silver:hover {
  border-color: rgba(192, 192, 192, 0.7);
}

.table-row.rank-bronze {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(205, 127, 50, 0.4);
}

.table-row.rank-bronze:hover {
  border-color: rgba(205, 127, 50, 0.7);
}

.col-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge {
  font-size: 1.5rem;
  font-weight: 700;
}

.col-player {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.player-username {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.col-level {
  display: flex;
  justify-content: center;
}

.level-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.col-value {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.col-value .stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
}

.pagination-top {
  margin: 0;
  gap: 0.5rem;
}

.pagination-top .pagination-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  min-width: 40px;
}

.pagination-top .pagination-info {
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.pagination-btn {
  background: rgba(107, 185, 240, 0.1);
  border: 2px solid rgba(107, 185, 240, 0.3);
  color: #6bb9f0;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(107, 185, 240, 0.2);
  border-color: #6bb9f0;
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
}