/**
 * Meetgle Weekly Leaderboard Styles
 */

/* Leaderboard Modal */
#leaderboardModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

#leaderboardModal > div {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(245, 87, 108, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

/* Leaderboard animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-rank-animated {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

/* iOS-specific fixes for Leaderboard Modal */
@supports (-webkit-touch-callout: none) {
    #leaderboardModal > div {
        max-height: 85vh !important;
        margin: 20px auto !important;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #leaderboardModal {
        padding: 10px !important;
    }
    
    #leaderboardModal > div {
        max-height: 88vh !important;
        padding: 20px !important;
        margin: auto !important;
    }
}
