/* Leaderboard Styles */

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Category Selector */
.category-selector {
    margin-bottom: 2rem;
}

.category-selector select {
    width: 100%;
    max-width: 300px;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.leaderboard-table thead {
    background: var(--bg-light);
}

.leaderboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr {
    transition: var(--transition);
}

.leaderboard-table tbody tr:hover {
    background: var(--bg-light);
}

/* Rank Cell */
.rank-cell {
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    width: 80px;
}

.rank-1 {
    color: #fbbf24;
}

.rank-2 {
    color: #9ca3af;
}

.rank-3 {
    color: #cd7f32;
}

.rank-other {
    color: var(--text-light);
}

/* Player Cell */
.player-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-provider {
    font-size: 0.9rem;
}

.player-username {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Score Cell */
.score-cell {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: right;
}

/* Date Cell */
.date-cell {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
}

/* Empty State */
.leaderboard-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.leaderboard-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.leaderboard-empty h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.leaderboard-empty p {
    color: var(--text-light);
}

/* Leaderboard Stats */
.leaderboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.leaderboard-stat {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.leaderboard-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.leaderboard-stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}
