/**
 * Slider Styles
 * 
 * @package SIC_Base_Theme
 */

/* Base Slider Styles */
.sic-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-slide {
    display: none;
    width: 100%;
}

.slider-slide.active {
    display: block;
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Fixed Container Styles - Prevents Jumping */
.slider-container-fixed {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.slider-slide-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-slide-fixed.active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.slider-image-fixed {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Image Fit Options */
.sic-slider[data-image-fit="contain"] .slider-image-fixed {
    object-fit: contain;
}

.sic-slider[data-image-fit="cover"] .slider-image-fixed {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.sic-slider[data-image-fit="scale-down"] .slider-image-fixed {
    object-fit: scale-down;
}

/* Caption Styles */
.slider-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 20px;
    border-radius: 4px;
    z-index: 2;
}

.slider-caption h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #ffffff;
}

.slider-caption p {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

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

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-arrow {
        padding: 10px 15px;
        font-size: 18px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .slider-caption h3 {
        font-size: 1.2rem;
    }
    
    .slider-caption p {
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

/* Loading State */
.sic-slider.loading .slider-slide {
    opacity: 0.5;
}

/* Smooth Transitions */
.slider-slide {
    transition: opacity 0.5s ease-in-out;
}

/* Ensure images don't exceed container in fixed mode */
.slider-container-fixed .slider-image-fixed {
    position: relative;
}
