/**
 * Clippeur.io - Custom styles
 * Complement to Tailwind CSS
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #4a4a6a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6a6a8a;
}

/* Clip card hover animation */
.clip-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

/* Rank badge pulse for top 3 */
.rank-pulse {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8); }
}

/* Stat counter animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Badge lock/unlock states */
.badge-locked {
    filter: grayscale(100%);
    opacity: 0.4;
}
.badge-earned {
    filter: none;
    opacity: 1;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
