/* Excellence Carousel Styles */
.excellence-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.excellence-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.excellence-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 0 20px;
}

/* Style for existing sport-showcase cards in carousel */
.excellence-card {
    min-width: 400px;
    max-width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.excellence-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-nav {
    left: 20px;
}

.next-nav {
    right: 20px;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Scroll Indicators */
.scroll-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: #60a5fa;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .excellence-card {
        min-width: 350px;
        max-width: 350px;
    }
    
    .carousel-track {
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .excellence-section {
        padding: 60px 0;
    }
    
    .excellence-card {
        min-width: 300px;
        max-width: 300px;
    }
    
    .carousel-track {
        gap: 10px;
        padding: 0 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-nav {
        left: 10px;
    }
    
    .next-nav {
        right: 10px;
    }
    
    .scroll-indicators {
        margin-top: 1.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .excellence-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-track {
        gap: 8px;
        padding: 0 8px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .prev-nav {
        left: 5px;
    }
    
    .next-nav {
        right: 5px;
    }
}

/* Animation for card entrance */
.excellence-card {
    animation: cardEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.excellence-card:nth-child(1) { animation-delay: 0.1s; }
.excellence-card:nth-child(2) { animation-delay: 0.2s; }
.excellence-card:nth-child(3) { animation-delay: 0.3s; }
.excellence-card:nth-child(4) { animation-delay: 0.4s; }
.excellence-card:nth-child(5) { animation-delay: 0.5s; }
.excellence-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.excellence-carousel.loading .carousel-track {
    opacity: 0.7;
}

.excellence-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Touch/swipe support */
.carousel-track {
    touch-action: pan-y pinch-zoom;
}

/* Focus styles for accessibility */
.carousel-nav:focus,
.indicator:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .excellence-card {
        border: 2px solid white;
    }
    
    .carousel-nav {
        border: 2px solid white;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .indicator {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .excellence-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .excellence-card:hover {
        transform: none;
    }
}
