
/* Header Slider Block Styles */
.header-slider-block {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Height Settings */
.height-small {
    height: 400px;
}

.height-medium {
    height: 500px;
}

.height-large {
    height: 600px;
}

.height-fullscreen {
    height: 100vh;
    min-height: 400px;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

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

/* Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed, 500ms) ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Slide Images */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    /* Hide arrows by default */
    opacity: 0;
    visibility: hidden;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    /* Ensure arrow stays visible when hovering */
    opacity: 1;
    visibility: visible;
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 10px;
    border-radius: 20px;
    /* Hide dots by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.slider-dots:hover {
    /* Ensure dots stay visible when hovering */
    opacity: 1;
    visibility: visible;
}

.dots-position-inside .slider-dots {
    /*background: rgba(0, 0, 0, 0.3);*/
}

.dots-position-outside .slider-dots {
    bottom: -40px;
}

.slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--dots-color, #ffffff);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

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

.slider-dot.active {
    background: var(--dots-color, #ffffff);
    transform: scale(1.1);
}

/* Show arrows and dots when hovering over slider */
.header-slider-block:hover .slider-arrow,
.header-slider-block:hover .slider-dots {
    opacity: 1;
    visibility: visible;
}

/* Slide Transition Effects */
.effect-fade .slide {
    transition: opacity var(--transition-speed, 500ms) ease-in-out;
}

.effect-slide .slide {
    transform: translateX(100%);
    transition: transform var(--transition-speed, 500ms) ease-in-out;
}

.effect-slide .slide.active {
    transform: translateX(0);
}

.effect-slide .slide.prev {
    transform: translateX(-100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .height-small {
        height: 300px;
    }
    
    .height-medium {
        height: 400px;
    }
    
    .height-large {
        height: 500px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .height-small {
        height: 250px;
    }
    
    .height-medium {
        height: 300px;
    }
    
    .height-large {
        height: 350px;
    }
    
    .slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .slider-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }
}

/* Accessibility */
.slider-arrow:focus,
.slider-dot:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide {
        transition: none;
    }
    
    .slider-arrow,
    .slider-dot {
        transition: none;
    }
}

/* Loading state */
.header-slider-block.loading .slide {
    opacity: 0;
}

.header-slider-block.loading .slide.active {
    opacity: 1;
}