/* Transformations (Figma: section-beforeafter 35:12353) */
.fighter-transformations {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding-block: var(--fighter-section-y);
  background: var(--fighter-gray-50);
  overflow: visible;
}

.fighter-transformations.fighter-section {
  overflow: visible;
}

.fighter-transformations__ellipse {
  position: absolute;
  width: min(670px, 44.31vw);
  height: min(670px, 44.31vw);
  left: calc(622 / 1512 * 100%);
  top: -157px;
  transform: translateX(0);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.fighter-transformations__header {
  position: relative;
  z-index: 1;
  width: min(100%, 800px);
  padding-inline: var(--fighter-section-x);
  box-sizing: border-box;
}

.fighter-transformations .fighter-section-title {
  gap: 24px;
  margin-bottom: 0;
  max-width: 800px;
}

.fighter-transformations .fighter-section-title__eyebrow {
  font-size: 16px;
  line-height: 16px;
  text-align: center;
  width: 100%;
}

.fighter-transformations .fighter-section-title__heading {
  display: flex;
  justify-content: center;
}

.fighter-transformations .fighter-section-title__deco {
  left: -23.5px;
  top: 32px;
  transform: none;
  z-index: -1;
}

.fighter-transformations
  .fighter-section-title--center
  .fighter-section-title__deco {
  left: -23.5px;
  transform: none;
}

.fighter-transformations .fighter-section-title__title {
  font-size: clamp(2rem, 5vw, 48px);
  line-height: 1;
  text-align: center;
}

/* Swiper carousel – fixed slide slots; scale the card (not width/height). */
.fighter-transformations-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(100%, var(--fighter-design-width));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

.fighter-transformations-swiper {
  width: 100%;
  overflow: hidden;
}

.fighter-transformations-swiper .swiper-wrapper {
  align-items: center;
}

.fighter-transformations-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.fighter-transformations-swiper .swiper-slide-blank {
  display: none !important;
}

/*
 * Active card larger via scale only (keeps Swiper translate smooth).
 * Transition duration matches Swiper speed (500ms).
 */
.fighter-transformations-swiper .fighter-carousel__card {
  position: relative;
  width: 100%;
  height: 438px;
  border-radius: var(--fighter-radius-lg);
  overflow: hidden;
  opacity: 0.4;
  transform: scale(0.92);
  transform-origin: center center;
  transition:
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fighter-transformations-swiper .swiper-slide-active .fighter-carousel__card {
  opacity: 1;
  transform: scale(1);
}

/* Used during silent wrap recenter — prevents the “loads twice” flash */
.fighter-transformations-swiper.fighter-swiper-is-jumping
  .fighter-carousel__card {
  transition: none !important;
}

.fighter-transformations-swiper .fighter-carousel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fighter-transformations-swiper .fighter-carousel__card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--fighter-gray-80);
}

.fighter-transformations-swiper .fighter-carousel__card-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px;
  background: linear-gradient(
    to top,
    rgba(21, 23, 27, 0.9),
    rgba(21, 23, 27, 0)
  );
}

.fighter-transformations-swiper .fighter-carousel__card-name {
  margin: 0;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: 40px;
  line-height: 40px;
  text-transform: uppercase;
  color: var(--fighter-white);
}

.fighter-transformations-swiper .fighter-carousel__card-result {
  margin: 0;
  font-family: var(--fighter-font-body);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--fighter-white);
}

.fighter-transformations .fighter-carousel__controls {
  width: 100%;
  max-width: var(--fighter-design-width);
  padding: 0 var(--fighter-section-x);
  margin: 0 auto;
  box-sizing: border-box;
}

.fighter-transformations__pagination {
  display: flex;
  gap: 6px;
}

/* Figma 35:12353 / 2080:2837 — p-xs, white-50, centered under carousel */
.fighter-transformations__disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-inline: var(--fighter-section-x);
  box-sizing: border-box;
  font-family: var(--fighter-font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  text-align: center;
  color: var(--fighter-white-50);
  text-wrap: balance;
}

/* Editor static preview (no Swiper) */
.fighter-transformations-carousel--editor .fighter-transformations-swiper {
  overflow: visible;
}

.fighter-transformations-carousel--editor
  .fighter-transformations-swiper
  .swiper-wrapper {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.fighter-transformations-carousel--editor
  .fighter-transformations-swiper
  .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.fighter-transformations-carousel--editor
  .fighter-transformations-slide
  .fighter-carousel__card {
  opacity: 0.4;
  transform: scale(0.915);
}

.fighter-transformations-carousel--editor
  .fighter-transformations-slide.is-active
  .fighter-carousel__card {
  opacity: 1;
  transform: scale(1);
}

.fighter-transformations-carousel--editor .fighter-carousel__arrow {
  cursor: pointer;
  pointer-events: auto;
}

.fighter-transformations-carousel--editor .fighter-carousel__dot {
  cursor: pointer;
  pointer-events: auto;
  border: 0;
  padding: 0;
}

.fighter-transformations-carousel--editor .fighter-transformations-slide {
  cursor: default;
}

.fighter-transformations-carousel--editor .fighter-carousel__card-select {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.fighter-transformations-carousel--editor .fighter-carousel__card-select img,
.fighter-transformations-carousel--editor .fighter-carousel__card-select .fighter-carousel__card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fighter-transformations-carousel--editor .fighter-carousel__card-caption {
  z-index: 2;
  pointer-events: auto;
  cursor: text;
}

@media (max-width: 767px) {
  .fighter-transformations {
    gap: 48px;
  }

  .fighter-transformations__ellipse {
    left: 50%;
    top: -80px;
    transform: translateX(-50%);
  }

  .fighter-transformations-carousel {
    max-width: 100%;
    padding-inline: var(--fighter-section-x);
    box-sizing: border-box;
  }

  .fighter-transformations-swiper {
    overflow: hidden;
  }

  /* One slide — no dimmed side peeks */
  .fighter-transformations-swiper .fighter-carousel__card {
    opacity: 1;
    transform: none;
  }

  .fighter-transformations .fighter-section-title__deco {
    left: 0;
    top: 28px;
  }

  .fighter-transformations__disclaimer {
    max-width: 100%;
    line-height: 16px;
  }
}
