/* =========================================================
   COSMIC LEADERBOARD STYLES
   Modern podium and leaderboard design
   ========================================================= */

/* Podium Styles */
.podium-first, .podium-second, .podium-third {
    animation: fadeInUp 0.6s ease-out;
}

.podium-first {
    animation-delay: 0.2s;
}

.podium-second {
    animation-delay: 0s;
}

.podium-third {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Champion Avatar */
.champion-avatar-container {
    position: relative;
    display: inline-block;
}

.champion-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid;
}

.champion-avatar.gold-glow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.champion-avatar.silver-glow {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    border-color: #C0C0C0;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.champion-avatar.bronze-glow {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    border-color: #CD7F32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.champion-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rank Crown */
.rank-crown {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid;
}

.gold-crown {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFD700;
    color: #000;
}

.silver-crown {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    border-color: #C0C0C0;
    color: #000;
}

.bronze-crown {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    border-color: #CD7F32;
    color: #000;
}

/* Podium Steps */
.podium-step {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid;
    min-height: 120px;
}

.cosmic-step {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.silver-step {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(168, 168, 168, 0.1) 100%);
    border-color: rgba(192, 192, 192, 0.5);
}

.bronze-step {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(184, 115, 51, 0.1) 100%);
    border-color: rgba(205, 127, 50, 0.5);
}

.step-content {
    text-align: center;
}

.champion-name {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.champion-earnings {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Achievement Badges */
.achievement-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.cosmic-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.silver-badge {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: #000;
}

.bronze-badge {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    color: #000;
}

/* Leaderboard Cards */
.leaderboard-card {
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.leaderboard-card:hover {
    background: rgba(40, 40, 50, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

/* Rank Badge */
.rank-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.top3-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.crown-icon {
    color: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

/* Desktop Leaderboard Scrollbar */
.desktop-leaderboard::-webkit-scrollbar {
    width: 8px;
}

.desktop-leaderboard::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.desktop-leaderboard::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.desktop-leaderboard::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Cosmic Border */
.cosmic-border {
    border: 2px solid;
    border-radius: 1rem;
    overflow: hidden;
}

.cosmic-border-content {
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
}

/* Cosmic Text Gradient */
.cosmic-text-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
