/* Premium Slider Animations */

/* Thumb Interactions */
input[type="range"]::-webkit-slider-thumb {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

input[type="range"].active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(232, 67, 147, 0.6);
}

/* Dynamic Glow Container */
.slider-glow-container {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Particles */
.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes particle-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-40px) scale(0);
        opacity: 0;
    }
}

@keyframes particle-fall {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateY(40px) scale(0);
        opacity: 0;
    }
}

/* Number Flash */
@keyframes number-stabilize {
    0% {
        color: var(--text-main);
        transform: scale(1);
    }

    50% {
        color: var(--primary-color);
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(232, 67, 147, 0.3);
    }

    100% {
        color: var(--text-main);
        transform: scale(1);
    }
}

.slider-value-large.stabilized {
    animation: number-stabilize 0.4s ease-out forwards;
}

/* Aura Background */
.slider-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 67, 147, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.slider-wrapper.active .slider-aura {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Depth Shadow */
.ruler-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-wrapper.active .ruler-container {
    transform: scale(1.02);
    /* Subtle 3D lift */
}