/* ===== Comparison Slider Component ===== */
.comparison-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: col-resize;
    user-select: none;
    -webkit-user-select: none;
    aspect-ratio: 4/3;
    background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cs-before {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.cs-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

/* Handle */
.cs-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    cursor: col-resize;
}

.cs-handle-line {
    flex: 1;
    width: 3px;
    background: white;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    border-radius: 2px;
}

.cs-handle-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0D9488;
    transition: transform 0.15s ease;
}

.cs-dragging .cs-handle-circle {
    transform: scale(1.15);
}

/* Labels */
.cs-label {
    position: absolute;
    bottom: 12px;
    z-index: 4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
}

.cs-label-before {
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
}

.cs-label-after {
    right: 12px;
    background: rgba(13,148,136,0.85);
    color: white;
}

/* Hero slider — larger */
.hero-right .comparison-slider {
    aspect-ratio: 1/1;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Showcase sliders — smaller */
.showcase-card .comparison-slider {
    aspect-ratio: 4/3;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-right .comparison-slider {
        max-width: 100%;
        aspect-ratio: 4/3;
    }
    .cs-handle-circle {
        width: 36px;
        height: 36px;
    }
    .cs-handle-circle svg {
        width: 14px;
        height: 14px;
    }
}
