/**
 * Price Slider Component Styles
 * Styling for noUiSlider price range filter
 * 
 * @component PriceSlider
 * @version 1.0.0
 */

/* Price Slider Container - Must have height for noUiSlider to render */
#modeokids-price-slider {
    position: relative;
    height: 40px !important;
    width: 100%;
    margin: 20px 0;
    padding: 12px 0;
    display: block !important;
    visibility: visible !important;
}

/* Ensure noUiSlider renders */
#modeokids-price-slider .noUi-target {
    position: relative;
    width: 100%;
    height: 8px;
}

/* noUiSlider Base */
#modeokids-price-slider .noUi-base {
    position: relative;
    width: 100%;
    height: 8px;
}

/* noUiSlider Connects (the track area) */
#modeokids-price-slider .noUi-connects {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 4px;
    background-color: #e5e7eb; /* gray-200 */
}

/* noUiSlider Connect (active range) */
#modeokids-price-slider .noUi-connect {
    background: linear-gradient(135deg, var(--primary, #cc1616) 0%, var(--primary-hover, #b31313) 100%);
    height: 100%;
    border-radius: 4px;
    transition: background 0.3s ease;
}

/* noUiSlider Handle */
#modeokids-price-slider .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff !important;
    border: 3px solid var(--primary, #cc1616) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    top: -6px;
    right: -10px;
    transition: all 0.2s ease;
    position: absolute;
}

#modeokids-price-slider .noUi-handle:hover {
    border-color: var(--primary-hover, #b31313) !important;
    box-shadow: 0 3px 12px rgba(204, 22, 22, 0.3);
    transform: scale(1.1);
}

#modeokids-price-slider .noUi-handle:active {
    box-shadow: 0 4px 16px rgba(204, 22, 22, 0.4);
    transform: scale(1.15);
}

/* Remove default noUiSlider handle inner elements */
#modeokids-price-slider .noUi-handle:before,
#modeokids-price-slider .noUi-handle:after {
    display: none !important;
}

/* noUiSlider Tooltip (optional - if enabled) */
#modeokids-price-slider .noUi-tooltip {
    background: var(--primary, #cc1616);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Loading state */
#modeokids-price-slider.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #modeokids-price-slider {
        height: 35px !important;
        margin: 15px 0;
    }
    
    #modeokids-price-slider .noUi-handle {
        width: 18px;
        height: 18px;
        top: -5px;
        right: -9px;
    }
}

