/* Modern Professional Carousel - Mobile First Design */

/* Base carousel container */
.modern-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
}

/* Carousel wrapper for slides */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Mobile height - smaller like example */
    overflow: hidden;
}

/* Slides container */
.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual slide */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Slide content container - Hidden for image-only display */
.slide-content {
    display: none;
}

/* Slide title - Hidden */
.slide-title {
    display: none;
}

/* Slide subtitle - Hidden */
.slide-subtitle {
    display: none;
}

/* Feature tags - Hidden */
.slide-features {
    display: none;
}

.feature-tag {
    display: none;
}

/* Call to action button - Hidden */
.slide-cta {
    display: none;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.carousel-nav.prev {
    left: 16px;
}

.carousel-nav.next {
    right: 16px;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.25);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.carousel-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    width: 0%;
    transition: width 0.3s ease;
}

/* Slide backgrounds for different games */
.slide-mlbb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.slide-pubg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide-hok {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.slide-magic-chess {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Loading state */
.carousel-loading {
    opacity: 0.7;
    pointer-events: none;
}

.carousel-loading .carousel-slides {
    transition: none;
}

/* Accessibility */
.carousel-nav:focus,
.carousel-indicator:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-slides,
    .carousel-nav,
    .carousel-indicator,
    .slide-cta {
        transition: none;
    }
}

/* Tablet styles */
@media (min-width: 768px) {
    .carousel-wrapper {
        height: 280px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .carousel-wrapper {
        height: 320px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .carousel-nav {
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .carousel-indicator {
        width: 12px;
        height: 12px;
    }
    
    .slide-cta {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-nav {
        background: white;
        border: 2px solid black;
    }
    
    .carousel-indicator {
        background: white;
        border: 1px solid black;
    }
    
    .carousel-indicator.active {
        background: black;
    }
}