/* Index-specific styles - shared styles are in shared.css */

/* Note: Common styles like .loader, .gradient-bg are now in shared.css */

/* Activity Filter Buttons */
.activity-filter-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.activity-filter-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

.activity-filter-btn.active:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Filter button count badges */
.activity-filter-btn span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-filter-btn:not(.active) span {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
}

/* Responsive Grid Improvements */
@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Fade In Animation - Now using Tailwind classes */

/* Medal animations */
.medal-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.medal-silver {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.4);
}

.medal-bronze {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

/* Performance bar animation */
.performance-bar {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        width: 0%;
    }
    to {
        width: var(--final-width);
    }
}

/* Responsive text sizing */
@media (max-width: 640px) {
    .ranking-title {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    .ranking-metrics {
        font-size: 0.75rem;
        line-height: 1rem;
    }
}

/* Subtle pulse for gold medal */
@keyframes subtlePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 5px 18px rgba(251, 191, 36, 0.4);
    }
}

/* Gold medal pulse */
@keyframes goldPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
    }
}

/* Gold glow effect */
@keyframes goldGlow {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Title glow effect */
@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8));
    }
}

/* Enhanced metric cards hover effects */
.metric-card {
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
