/* Leaderboard styles for Bank Soal */
.leaderboard-section {
  margin: 48px auto 24px;
  max-width: 1000px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.leaderboard-section.compact {
  margin: 16px 0 0;
  max-width: none;
  border-radius: 10px;
  padding: 12px 16px;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.leaderboard-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.2rem;
}

.leaderboard-subtitle {
  color: #666;
  font-size: 0.9rem;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 40px 1fr 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.leaderboard-item.placeholder .leaderboard-name { color: #9ca3af; font-weight: 500; }
.leaderboard-item.placeholder .leaderboard-count { color: #c7c7c7; font-weight: 500; }

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-rank {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f7f7f7;
  font-weight: 600;
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  display: grid;
  place-items: center;
  color: #3b82f6;
}

.leaderboard-name {
  font-weight: 600;
}

.leaderboard-count {
  text-align: right;
  font-weight: 600;
}

/* Top 1-3 highlights */
.leaderboard-item.rank-1 .leaderboard-rank { background: #fff7e6; color: #d97706; }
.leaderboard-item.rank-2 .leaderboard-rank { background: #f3f4f6; color: #4b5563; }
.leaderboard-item.rank-3 .leaderboard-rank { background: #fdf2f8; color: #be185d; }

@media (max-width: 768px) {
  .leaderboard-item { grid-template-columns: 32px 1fr 80px; }
  .leaderboard-rank { width: 32px; height: 32px; }
  .leaderboard-avatar { width: 30px; height: 30px; }
}
