/* Carousel Styles for EasyRide Project */

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: transparent;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    background: transparent;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    background: transparent;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 1rem;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: none; /* Hide navigation arrows */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #32CD32;
    font-size: 1.25rem;
}

.carousel-arrow:hover {
    background: #32CD32;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(50, 205, 50, 0.3), 0 4px 6px -2px rgba(50, 205, 50, 0.2);
}

.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hide dots navigation */
    gap: 8px;
    z-index: 10;
}

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

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #32CD32;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.carousel-dot:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(50, 205, 50, 0.5);
}

/* Slide Content Overlay */
.carousel-slide .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    border-radius: 0 0 1rem 1rem;
}

.carousel-slide .slide-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-slide .slide-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .carousel-wrapper {
        background: transparent;
    }
    
    .carousel-track {
        background: transparent;
    }
    
    .carousel-slide {
        background: transparent;
    }
    
    .carousel-slide img {
        background: transparent;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 12px;
    }
    
    .carousel-next {
        right: 12px;
    }
    
    .carousel-dots {
        bottom: 16px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-slide .slide-content {
        padding: 1.5rem;
    }
    
    .carousel-slide .slide-title {
        font-size: 1.25rem;
    }
    
    .carousel-slide .slide-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .carousel-wrapper {
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .carousel-track {
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .carousel-slide {
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .carousel-slide img {
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-slide .slide-content {
        padding: 1rem;
    }
    
    .carousel-slide .slide-title {
        font-size: 1.125rem;
    }
    
    .carousel-slide .slide-description {
        font-size: 0.875rem;
    }
}

/* Loading State */
.carousel.loading {
    opacity: 0.7;
}

.carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #32CD32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 20;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.carousel[tabindex]:focus {
    outline: 2px solid #32CD32;
    outline-offset: 2px;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .carousel-arrow {
        transition: none;
    }
    
    .carousel-dot {
        transition: none;
    }
}
