/* ============================================================
   Interactive Before & After Image Comparison Slider Styles
============================================================ */

.mcd-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--mcd-radius-md, 14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    user-select: none;
    touch-action: pan-y;
}

@media (max-width: 768px) {
    .mcd-slider-container {
        height: 280px;
    }
}

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

.mcd-slider-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.mcd-slider-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transition: clip-path 0.05s ease-out;
}

.mcd-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.8), 0 0 20px rgba(0, 0, 0, 0.8);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
    pointer-events: auto;
}

.mcd-slider-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00b4d8;
    color: #090d16;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: grab;
}

.mcd-slider-handle:active .mcd-slider-knob {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.mcd-badge-label {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}

.mcd-label-before {
    left: 16px;
    background: rgba(230, 57, 70, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.mcd-label-after {
    right: 16px;
    background: rgba(0, 180, 216, 0.85);
    color: #090d16;
    backdrop-filter: blur(4px);
}
