/* Leaderboard Styles */

.leaderboard-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.leaderboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-selector label {
    font-weight: 600;
    color: #333;
}

.date-selector input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

.leaderboard-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #2196f3;
}

.tab-btn.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
}

.leaderboard-tab {
    display: none;
}

.leaderboard-tab.active {
    display: block;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaderboard-item.current-user {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-color: #1976d2;
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196f3;
    min-width: 50px;
    text-align: center;
}

.leaderboard-item.current-user .rank {
    color: white;
}

.rank.rank-1 {
    color: #ffd700;
}

.rank.rank-2 {
    color: #c0c0c0;
}

.rank.rank-3 {
    color: #cd7f32;
}

.leaderboard-item.current-user .rank.rank-1,
.leaderboard-item.current-user .rank.rank-2,
.leaderboard-item.current-user .rank.rank-3 {
    color: white;
}

.user-info {
    flex: 1;
    margin-left: 20px;
}

.leaderboard-item .username {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.leaderboard-item.current-user .username {
    color: white;
}

.user-stats {
    font-size: 0.9rem;
    color: #666;
}

.leaderboard-item.current-user .user-stats {
    color: rgba(255, 255, 255, 0.8);
}

.score-info {
    text-align: right;
    margin-left: 20px;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196f3;
    display: block;
}

.leaderboard-item.current-user .score-value {
    color: white;
}

.score-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-item.current-user .score-label {
    color: rgba(255, 255, 255, 0.8);
}

.empty-leaderboard {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-leaderboard h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #999;
}

.empty-leaderboard p {
    font-size: 1rem;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaderboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .leaderboard-header h1 {
        font-size: 2rem;
    }
    
    .date-selector {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-info {
        margin-left: 0;
    }
    
    .score-info {
        margin-left: 0;
        text-align: center;
    }
    
    .rank {
        min-width: auto;
    }
} 