/* Additional custom styles for Battlefield 6 Stats Dashboard - Professional Theme */

/* Custom animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #3b82f6; }
    50% { box-shadow: 0 0 20px #3b82f6, 0 0 30px #3b82f6; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Glowing effects for important elements */
.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Custom button variants */
.btn-glow {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    animation: glow 2s ease-in-out infinite;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Enhanced card styles */
.card-enhanced {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(17, 24, 39, 0.3) 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(59, 130, 246, 0.3);
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Professional theme enhancements */
.professional-theme {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2a2a2a 100%);
}

/* Text effects */
.text-glow {
    text-shadow: 0 0 10px #3b82f6;
}

.text-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
    box-shadow: 0 0 5px #3b82f6;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

/* Enhanced form styles */
.form-input:focus {
    background: rgba(59, 130, 246, 0.1);
    border-color: #1d4ed8;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Table enhancements */
.stats-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.stats-table tr:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .player-name {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}
