/* Leaderboard-specific styles */
.leaderboard-container {
    max-width: 1200px;
    margin: 40px auto 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--card-shadow);
    padding: 40px;
    transition: all 0.3s ease;
}

body.dark-mode .leaderboard-container {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(107, 42, 255, 0.2);
}

.trophy-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.theme-filter,
.view-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.theme-btn,
.toggle-btn {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toggle-btn {
    border-color: #6c757d;
    color: #6c757d;
    font-size: 14px;
}

.theme-btn:hover,
.toggle-btn:hover {
    background: #007bff;
    color: white;
}

.toggle-btn:hover {
    background: #6c757d;
}

.theme-btn.active {
    background: #007bff;
    color: white;
}

.toggle-btn.active {
    background: #6c757d;
    color: white;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dark-mode .leaderboard-item {
    box-shadow: 0 4px 15px rgba(107, 42, 255, 0.1);
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

body.dark-mode .leaderboard-item:hover {
    box-shadow: 0 4px 20px rgba(107, 42, 255, 0.2);
}

.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 20px;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #856404;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #d3d3d3);
    color: #383d41;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #e59866);
    color: #fff;
}

.rank-other {
    background: #dee2e6;
    color: #495057;
}

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

.player-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.player-score {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

.detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

body.dark-mode .detail-card {
    box-shadow: 0 4px 15px rgba(107, 42, 255, 0.1);
}

.detail-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .detail-card:hover {
    box-shadow: 0 6px 20px rgba(107, 42, 255, 0.2);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.player-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #007bff;
    color: white;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
}

.score-badge {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.theme-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: #007bff;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

.theme-label {
    display: inline-block;
    padding: 4px 12px;
    background: #6c757d;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text,
.response-text,
.feedback-text {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 4px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.question-text {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-left: 4px solid var(--link-color);
}

.response-text {
    font-size: 14px;
    color: var(--text-primary);
    background: #e7f3ff;
}

.feedback-text {
    font-size: 14px;
    color: var(--text-secondary);
    background: #fff9e6;
    border-left: 4px solid #ffc107;
}

body.dark-mode .question-text,
body.dark-mode .response-text,
body.dark-mode .feedback-text {
    box-shadow: 0 4px 15px rgba(107, 42, 255, 0.1);
}

body.dark-mode .response-text {
    background: rgba(107, 42, 255, 0.1);
}

body.dark-mode .feedback-text {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.stats-row {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6c757d;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.btn-container {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}