/* ============================================================
   Op. Dr. Ramazan Güler — Before / After Grid
   ============================================================ */

.before-after-section { background: var(--color-bg-alt); }

/* ── Grid */
.ba__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Tek kart */
.ba__item { min-width: 0; }

/* ── Slider Container */
.ba__slider-wrapper { position: relative; }

.ba__slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 4/3;
  background: #000;
}
.ba__slider:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Before (full width) */
.ba__img--before { z-index: 1; }

/* After (clipped) */
.ba__img--after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* ── Labels */
.ba__label {
  position: absolute;
  top: 10px;
  z-index: 4;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: .1em;
  pointer-events: none;
}
.ba__label--before { left: 10px; }
.ba__label--after  { right: 10px; }

/* ── Handle */
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.9);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba__handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-dark);
  z-index: 6;
}
.ba__handle-circle svg { width: 26px; height: 26px; display: block; }

/* ── Drag hint */
.ba__drag-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.85);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .68rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  animation: hint-pulse 3s ease 1.5s forwards;
}
@keyframes hint-pulse {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}
.ba__drag-hint svg { width: 12px; height: 12px; fill: currentColor; }
