@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    .leaderboard-card {
        @apply bg-gray-800 rounded-xl p-6 shadow-lg border border-gray-700;
    }
    
    .rank-number {
        @apply font-bold text-3xl font-orbitron flex items-center justify-center w-16 h-16 rounded-full;
    }
    
    .game-card {
        @apply flex items-center gap-6 p-4 rounded-lg transition-all duration-300 hover:bg-gray-700/50;
    }
    
    .game-title {
        @apply text-white font-rajdhani text-lg font-medium;
    }
    
    .game-info {
        @apply text-gray-400 font-rajdhani text-sm;
    }
}

@layer utilities {
    .font-orbitron {
        font-family: 'Orbitron', sans-serif;
    }
    
    .font-rajdhani {
        font-family: 'Rajdhani', sans-serif;
    }
    
    .text-glow {
        text-shadow: 0 0 10px currentColor;
    }
    
    .glow-pulse {
        animation: glowPulse 2s infinite alternate;
    }
    
    .slide-in-left {
        animation: slideInLeft 0.8s ease-out forwards;
    }
    
    .count-up {
        animation: countUp 1s ease-out forwards;
    }
    
    .flicker {
        animation: flicker 1.5s linear forwards;
    }
}

@keyframes glowPulse {
    0% { opacity: 0.8; text-shadow: 0 0 5px currentColor; }
    100% { opacity: 1; text-shadow: 0 0 20px currentColor; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes countUp {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flicker {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.1; }
    30% { opacity: 0.7; }
    40% { opacity: 0.2; }
    50% { opacity: 0.9; }
    60% { opacity: 0.3; }
    70% { opacity: 1; }
    80% { opacity: 0.4; }
    90% { opacity: 0.8; }
    100% { opacity: 1; }
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}