/* ============================================================
   DPC Before After Slider — front-end styles
   ============================================================ */

.dpc-ba-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: col-resize;
    border-radius: 6px;
    background: #111;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
    margin: 1.5em 0;
}

/* Images */
.dpc-ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.dpc-ba-after {
    clip-path: inset(0 0 0 50%);
    -webkit-clip-path: inset(0 0 0 50%);
}

/* Labels */
.dpc-ba-label {
    position: absolute;
    top: 12px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s;
}

.dpc-ba-label--before {
    left: 12px;
    background: rgba(0,0,0,0.50);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

.dpc-ba-label--after {
    right: 12px;
    background: rgba(0,0,0,0.50);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
}

/* Divider */
.dpc-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.85);
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
    /* keep visible even at 0% / 100% edges */
    will-change: left;
}

/* Handle */
.dpc-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,0.35);
    cursor: col-resize;
    transition: transform 0.15s, box-shadow 0.15s;
    pointer-events: auto;
}

.dpc-ba-handle svg {
    width: 18px;
    height: 18px;
    color: #333;
    flex-shrink: 0;
    display: block;
}

.dpc-ba-wrap:hover .dpc-ba-handle,
.dpc-ba-wrap.dpc-ba-dragging .dpc-ba-handle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 22px rgba(0,0,0,0.42);
}

/* Responsive */
@media (max-width: 600px) {
    .dpc-ba-handle {
        width: 36px;
        height: 36px;
    }
    .dpc-ba-handle svg {
        width: 14px;
        height: 14px;
    }
    .dpc-ba-label {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
}
