/**
 * VR Theme Park Carousel Styles - Fixed Version
 */

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Carousel Wrapper - Circular Frame */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

/* Individual Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: 
        opacity 0.5s ease-in-out,
        transform 0.5s ease-in-out;
    will-change: opacity, transform;
}

.carousel-slide.active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 2;
}

/* Image Styling */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

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

.carousel-dot.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    width: 16px;
    height: 16px;
}

/* Caption Overlay */
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.carousel-slide.active .carousel-caption {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.carousel-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Loading Spinner */
.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: carousel-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-wrapper {
        width: 200px;
        height: 200px;
    }

    .carousel-dots {
        bottom: -50px;
        gap: 8px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 14px;
        height: 14px;
    }

    .carousel-caption h3 {
        font-size: 1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        width: 160px;
        height: 160px;
    }

    .carousel-dots {
        bottom: -45px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .carousel-wrapper {
        background: rgba(30, 30, 30, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 2px 10px rgba(255, 255, 255, 0.1);
    }

    .carousel-dot {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .carousel-dot:hover {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* Animation Variations */
.carousel-slide.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-slide.scale-up {
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}


