/* Önce / sonra — kaydırmalı karşılaştırma */

.ba-compare-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-3);
  border-radius: calc(var(--radius-lg) + 2px);
  background: var(--surface-elevated);
  border: 1px solid color-mix(in srgb, var(--azur-300) 18%, var(--border-subtle));
  box-shadow: var(--shadow-sm);
}

.ba-compare {
  --ba-pos: 50%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.ba-compare__labels {
  position: absolute;
  z-index: 4;
  top: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  pointer-events: none;
}

.ba-compare__label {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-arch);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgb(11 42 74 / 72%);
  backdrop-filter: blur(4px);
}

.ba-compare__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c1220;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}

.ba-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-compare__img--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-compare__img--after {
  z-index: 1;
}

.ba-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
  pointer-events: none;
}

.ba-compare__handle {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: -1.325rem 0 0 -1.325rem;
  border: none;
  border-radius: 50%;
  color: var(--azur-900);
  background: #fff;
  box-shadow: 0 8px 22px rgb(11 42 74 / 22%);
  cursor: ew-resize;
  touch-action: none;
}

.ba-compare__handle:focus-visible {
  outline: 2px solid var(--azur-500);
  outline-offset: 2px;
}

.ba-compare-card__title {
  margin: 0;
  padding: 0 var(--space-1);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--azur-900);
}

.home-results__grid,
.ba-compare-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .home-results__grid,
  .ba-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

@media (min-width: 960px) {
  .home-results__grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .home-results__grid--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .home-results__grid--eight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.home-results--smile .section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.home-results__hint {
  margin: var(--space-2) 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.home-results__foot {
  margin-top: var(--space-6);
  text-align: center;
}

.home-results__disclaimer {
  margin: 0 0 var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-inline: auto;
}

.home-results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.theme-smilora .ba-compare__label {
  background: color-mix(in srgb, var(--smilora-navy-deep) 82%, transparent);
}

.theme-smilora .ba-compare-card__title {
  color: var(--smilora-navy-deep);
}

.gallery-before--compare .section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
