/**
 * Etoilium Image Carousel Styles
 */

.etoilium-age-selector-wrapper .etoilium-images-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background-color: transparent;
}

.etoilium-age-selector-wrapper .carousel-container {
    position: relative;
    width: 100%;
    padding-bottom: 5%; /* 4:3 aspect ratio */
    overflow: hidden;
}

.etoilium-age-selector-wrapper .carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.etoilium-age-selector-wrapper .carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.etoilium-age-selector-wrapper .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Navigation Arrows */
.etoilium-age-selector-wrapper .etoilium-images-gallery .carousel-nav {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: white !important;
    border: 1px solid #E8E9F2 !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    outline: 0 !important;
}

.etoilium-age-selector-wrapper .carousel-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.etoilium-age-selector-wrapper .carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.etoilium-age-selector-wrapper .carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.etoilium-age-selector-wrapper .carousel-prev {
    left: 15px;
}

.etoilium-age-selector-wrapper .carousel-next {
    right: 15px;
}

.etoilium-age-selector-wrapper .carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: #7371B4;
}

/* Indicators (dots) */
.etoilium-age-selector-wrapper .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.etoilium-age-selector-wrapper .carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white !important;
    border: 1px solid #7371B4 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.etoilium-age-selector-wrapper .carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1);
}

.etoilium-age-selector-wrapper .carousel-indicator.active {
    background-color: #7371B4 !important;
    border-color: #7371B4 !important;
    transform: scale(1.2);
}

/* Badges overlay */
.etoilium-age-selector-wrapper .image-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    z-index: 5;
    pointer-events: none;
}

.etoilium-age-selector-wrapper .badge-overlay {
    pointer-events: auto;
}

.etoilium-age-selector-wrapper .badge-top-left {
    margin-right: auto;
}

.etoilium-age-selector-wrapper .badge-top-right {
    margin-left: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .etoilium-age-selector-wrapper .carousel-container {
        padding-bottom: 75%;
    }
    
    .etoilium-age-selector-wrapper .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .etoilium-age-selector-wrapper .carousel-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .etoilium-age-selector-wrapper .carousel-prev {
        left: 10px;
    }
    
    .etoilium-age-selector-wrapper .carousel-next {
        right: 10px;
    }
    
    .etoilium-age-selector-wrapper .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .etoilium-age-selector-wrapper .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .etoilium-age-selector-wrapper .image-badges {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .etoilium-age-selector-wrapper .carousel-nav {
        width: 32px;
        height: 32px;
    }
    
    .etoilium-age-selector-wrapper .carousel-nav svg {
        width: 14px;
        height: 14px;
    }
    
    .etoilium-age-selector-wrapper .carousel-prev {
        left: 8px;
    }
    
    .etoilium-age-selector-wrapper .carousel-next {
        right: 8px;
    }
}

/* Loading state */
.etoilium-age-selector-wrapper .carousel-slide.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth transitions */
.etoilium-age-selector-wrapper .carousel-track,
.etoilium-age-selector-wrapper .carousel-nav,
.etoilium-age-selector-wrapper .carousel-indicator {
    will-change: transform;
}
