/* Extracted comparison slider styles (moved from index.html) */

/* Tombstone note: Styles were removed from index.html and consolidated here */
.comparison-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    background: var(--dark-gray);
    aspect-ratio: 16/10;
    touch-action: pan-y;
    cursor: col-resize;
    border: 2px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .comparison-slider-wrapper {
        aspect-ratio: 4/5;
    }
}

.comp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.comp-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.comp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.comp-img.after {
    z-index: 1;
}

.comp-img.before {
    z-index: 2;
    clip-path: inset(0 50% 0 0); 
}

.comp-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-blue);
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.comp-handle::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 14l-4-4 4-4v8zm8-8l4 4-4 4V6z'/%3E%3C/svg%3E");
    background-size: 28px;
    background-position: center;
    background-repeat: no-repeat;
}

.comp-label {
    position: absolute;
    top: 20px;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 4;
    color: #fff;
    pointer-events: none;
}

.comp-label.before {
    left: 20px;
    background: linear-gradient(135deg, rgba(255,120,0,0.95) 0%, rgba(255,160,64,0.9) 100%);
    box-shadow: 0 6px 18px rgba(255,140,0,0.3);
}

.comp-label.after {
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(0,150,255,0.9) 100%);
    box-shadow: 0 6px 18px rgba(0,210,255,0.3);
}