/**
 * Frontend Styles - Shortcode Slider
 */

/* Slider Wrapper */
.shortcode-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.shortcode-slider-wrapper.transparent-bg {
    background: transparent;
}

/* Auto height mode */
.shortcode-slider-wrapper.auto-height {
    height: auto !important;
    min-height: 300px;
}

.shortcode-slider-wrapper.auto-height .shortcode-slider-track {
    position: relative;
    height: auto;
    min-height: 300px;
}

.shortcode-slider-wrapper.auto-height .shortcode-slide-content {
    min-height: 300px;
}

/* Slider Track */
.shortcode-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.shortcode-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
}

/* Active slide */
.shortcode-slide.active {
    position: relative;
    transform: translateX(0);
    z-index: 2;
}

/* Slide transitions */
.shortcode-slide.slide-out-left {
    transform: translateX(-100%);
}

.shortcode-slide.slide-out-right {
    transform: translateX(100%);
}

.shortcode-slide.slide-in-left {
    position: absolute;
    transform: translateX(-100%);
}

.shortcode-slide.slide-in-right {
    position: absolute;
    transform: translateX(100%);
}

/* Slide Content */
.shortcode-slide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
}

.shortcode-slide-content img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navigation Arrows */
.shortcode-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shortcode-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shortcode-slider-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.4);
}

.shortcode-slider-arrow svg {
    width: 24px;
    height: 24px;
    color: #333;
}

.shortcode-slider-prev {
    left: 20px;
}

.shortcode-slider-next {
    right: 20px;
}

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

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

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

.shortcode-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.shortcode-slider-dot:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .shortcode-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .shortcode-slider-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .shortcode-slider-prev {
        left: 10px;
    }
    
    .shortcode-slider-next {
        right: 10px;
    }
    
    .shortcode-slider-dots {
        bottom: 15px;
    }
    
    .shortcode-slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (hover: none) {
    .shortcode-slider-arrow {
        opacity: 0.8;
    }
}
