/**
 * Horizontal Scroll Elementor - CSS Styles
 */

.hse-horizontal-scroll-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hse-horizontal-scroll-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hse-horizontal-scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hse-horizontal-scroll-content > * {
    white-space: normal;
    flex-shrink: 0;
}

/* Progress Bar Styles */
.hse-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hse-progress-bar.active {
    opacity: 1;
}

.hse-progress-fill {
    height: 100%;
    background-color: #007cba;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Smooth scrolling states */
.hse-scrolling-horizontal {
    overflow: hidden;
}

.hse-scrolling-horizontal body {
    overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hse-horizontal-scroll-content {
        transition: transform 0.15s ease-out;
    }
    
    .hse-progress-bar {
        height: 3px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .hse-horizontal-scroll-content {
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Prevent text selection during horizontal scroll */
.hse-horizontal-scroll-wrapper.scrolling {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Custom scrollbar for horizontal content overflow */
.hse-horizontal-scroll-content::-webkit-scrollbar {
    display: none;
}

.hse-horizontal-scroll-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animation for smooth entry/exit */
.hse-horizontal-scroll-wrapper.entering {
    transition: all 0.3s ease-in-out;
}

.hse-horizontal-scroll-wrapper.exiting {
    transition: all 0.3s ease-in-out;
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hse-horizontal-scroll-content {
        backface-visibility: hidden;
        perspective: 1000px;
        transform: translateZ(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hse-horizontal-scroll-content {
        transition: none;
    }
    
    .hse-progress-fill {
        transition: none;
    }
    
    .hse-progress-bar {
        transition: none;
    }
}

/* Loading state */
.hse-horizontal-scroll-wrapper.loading .hse-horizontal-scroll-content {
    opacity: 0.5;
}

.hse-horizontal-scroll-wrapper.loaded .hse-horizontal-scroll-content {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.1s ease-out;
}
