/* 순위 페이지 스타일 */

/* 사용자 순위 카드 */
.user-rank-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 1.5rem;
  border: 3px solid var(--primary-color);
}

.user-details h2 {
  margin-bottom: 0.3rem;
  font-size: 1.6rem;
  color: var(--primary-color);
}

.user-score {
  font-size: 1.2rem;
  color: var(--dark-gray);
}

.user-rank {
  display: flex;
  align-items: center;
}

.rank-display {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rank-number {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
}

.rank-label {
  font-size: 1rem;
  margin-top: 0.2rem;
}

/* 리더보드 테이블 */
.leaderboard-container {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.leaderboard-container h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 0.5fr 3fr 1fr;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  color: var(--dark-gray);
}

.leaderboard-body {
  max-height: 500px;
  overflow-y: auto;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 0.5fr 3fr 1fr;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--light-gray);
  align-items: center;
}

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

.leaderboard-row:hover {
  background-color: rgba(74, 103, 232, 0.05);
}

.current-user {
  background-color: rgba(74, 103, 232, 0.1);
  font-weight: bold;
}

.rank-col {
  text-align: center;
}

.player-col {
  display: flex;
  align-items: center;
}

.score-col {
  text-align: right;
  font-weight: bold;
  color: var(--primary-color);
}

.player-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid var(--primary-color);
}

/* 탑 3 스타일 */
.leaderboard-row:nth-child(1) .rank-col {
  color: gold;
  font-weight: bold;
  font-size: 1.2rem;
}

.leaderboard-row:nth-child(2) .rank-col {
  color: silver;
  font-weight: bold;
  font-size: 1.1rem;
}

.leaderboard-row:nth-child(3) .rank-col {
  color: #cd7f32; /* 브론즈 */
  font-weight: bold;
  font-size: 1.05rem;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: var(--dark-gray);
  font-style: italic;
}

/* 반응형 */
@media (max-width: 768px) {
  .user-rank-card {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .user-info {
    justify-content: center;
    width: 100%;
  }
  
  .leaderboard-header, .leaderboard-row {
    grid-template-columns: 0.5fr 2fr 1fr;
    font-size: 0.9rem;
  }
  
  .player-col {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
} 