/* Webtron Custom Carousel Styles */

.woa-carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
}

.woa-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.woa-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.woa-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.woa-carousel-slide.woa-active {
    opacity: 1;
}

.woa-slide-content {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woa-carousel-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Multi-slide carousel */
.woa-slides-2 .woa-carousel-slide {
    flex: 0 0 50%;
    min-width: 50%;
}

.woa-slides-3 .woa-carousel-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
}

.woa-slides-4 .woa-carousel-slide {
    flex: 0 0 25%;
    min-width: 25%;
}

.woa-slides-2 .woa-carousel-slide,
.woa-slides-3 .woa-carousel-slide,
.woa-slides-4 .woa-carousel-slide {
    padding: 0 10px;
    opacity: 1; /* All slides visible in multi-slide mode */
}

/* Fade effect */
.woa-effect-fade .woa-carousel-track {
    position: relative;
}

.woa-effect-fade .woa-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.woa-effect-fade .woa-carousel-slide.woa-active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

/* Navigation arrows */
.woa-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: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #2372ce;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.woa-carousel-arrow:hover {
    background: #2372ce;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.woa-arrow-prev {
    left: 20px;
}

.woa-arrow-next {
    right: 20px;
}

.woa-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.woa-carousel-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #2372ce;
    transform: translateY(-50%) scale(1);
}

/* Dots navigation */
.woa-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.woa-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.woa-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.woa-dot.woa-active {
    background: #2372ce;
    width: 32px;
    border-radius: 6px;
}

/* Equal height mode */
.woa-carousel-container[data-height="equal"] .woa-carousel-slide {
    display: flex;
}

.woa-carousel-container[data-height="equal"] .woa-slide-content {
    width: 100%;
}

.woa-carousel-container[data-height="equal"] .woa-carousel-image {
    height: 100%;
    object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .woa-carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .woa-arrow-prev {
        left: 10px;
    }
    
    .woa-arrow-next {
        right: 10px;
    }
    
    .woa-slides-4 .woa-carousel-slide,
    .woa-slides-3 .woa-carousel-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
    
    .woa-slides-2 .woa-carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .woa-slides-4 .woa-carousel-slide,
    .woa-slides-3 .woa-carousel-slide,
    .woa-slides-2 .woa-carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .woa-carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .woa-dot {
        width: 10px;
        height: 10px;
    }
    
    .woa-dot.woa-active {
        width: 24px;
    }
}

/* Loading state */
.woa-carousel-container.woa-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woa-carousel-container.woa-loading::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-top-color: #2372ce;
    border-radius: 50%;
    animation: woa-spin 1s linear infinite;
}

@keyframes woa-spin {
    to { transform: rotate(360deg); }
}
