/* VTUCrack Dashboard Styles (V1.0) */

/* Animation Keyframes */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

.animate-fade-out {
    animation: fade-out 0.2s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-slide-down {
    animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Leaderboard Modal Specific Styles */
#leaderboard-modal-overlay {
    animation: fade-in 0.3s ease-out;
}

#leaderboard-modal-overlay.animate-fade-out {
    animation: fade-out 0.2s ease-out;
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Glass Card Effects */
.card-glass {
    background: rgba(17, 17, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-glass:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar for Modal */
#leaderboard-modal-overlay ::-webkit-scrollbar {
    width: 8px;
}

#leaderboard-modal-overlay ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#leaderboard-modal-overlay ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

#leaderboard-modal-overlay ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    #leaderboard-modal-overlay > div {
        max-width: 95vw !important;
        margin: 1rem;
    }
}
