/* Kampanyalar — hafif tatlı hareket */

.home-campaigns--motion .home-campaigns__ambience {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-campaigns--motion .home-campaigns__inner {
  position: relative;
  z-index: 1;
}

/* Kampanya rozetleri — kartların arkasında hafif süzülme */
.home-campaigns--motion .home-campaigns__deals {
  position: absolute;
  inset: 22% 0 18%;
  z-index: 0;
}

.home-campaigns--motion .home-campaigns__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e30613;
  white-space: nowrap;
  border: 1px solid rgba(227, 6, 19, 0.18);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.55;
}

.home-campaigns--motion .home-campaigns__chip--b {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ef2330 0%, #c40810 100%);
  border-color: rgba(227, 6, 19, 0.35);
  opacity: 0.65;
}

.home-campaigns--motion .home-campaigns__chip--icon {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  color: #e30613;
}

.home-campaigns--motion .home-campaigns__chip--icon svg {
  width: 1rem;
  height: 1rem;
}

.home-campaigns--motion .home-campaigns__chip--a { top: 8%; left: 6%; }
.home-campaigns--motion .home-campaigns__chip--b { top: 22%; left: 28%; }
.home-campaigns--motion .home-campaigns__chip--c { top: 12%; right: 18%; }
.home-campaigns--motion .home-campaigns__chip--d { bottom: 18%; left: 14%; }
.home-campaigns--motion .home-campaigns__chip--e { bottom: 28%; right: 8%; }
.home-campaigns--motion .home-campaigns__chip--f { top: 46%; left: 44%; }

/* Başlık girişi */
.home-campaigns--motion.is-revealed .home-campaigns__head {
  animation: camp-head-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-campaigns--motion.is-revealed .home-campaigns__swiper {
  animation: camp-swiper-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.home-campaigns--motion.is-revealed .home-campaigns__footer {
  animation: camp-head-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* Kartlar — kademeli belirme */
.home-campaigns--motion.is-revealed .swiper-slide .home-camp-card--editorial {
  animation: camp-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-campaigns--motion.is-revealed .swiper-slide:nth-child(1) .home-camp-card--editorial { animation-delay: 0.18s; }
.home-campaigns--motion.is-revealed .swiper-slide:nth-child(2) .home-camp-card--editorial { animation-delay: 0.28s; }
.home-campaigns--motion.is-revealed .swiper-slide:nth-child(3) .home-camp-card--editorial { animation-delay: 0.38s; }
.home-campaigns--motion.is-revealed .swiper-slide:nth-child(4) .home-camp-card--editorial { animation-delay: 0.48s; }
.home-campaigns--motion.is-revealed .swiper-slide:nth-child(n + 5) .home-camp-card--editorial { animation-delay: 0.55s; }

/* Aktif kart — hafif öne çıkma */
.home-campaigns--motion .swiper-slide-active .home-camp-card--editorial {
  transform: translateY(-6px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 22px 48px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(227, 6, 19, 0.08);
}

.home-campaigns--motion .swiper-slide:not(.swiper-slide-active) .home-camp-card--editorial {
  transform: translateY(0) scale(0.992);
  opacity: 0.94;
}

.home-campaigns--motion .swiper-slide.is-camp-near:not(.swiper-slide-active) .home-camp-card--editorial {
  opacity: 0.98;
}

/* Index rozeti */
.home-campaigns--motion .swiper-slide-active .home-camp-card__index {
  animation: camp-index-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* CTA ok */
.home-campaigns--motion .home-camp-card--editorial:hover .home-camp-card__cta i,
.home-campaigns--motion .home-camp-card--editorial:hover .home-camp-card__cta svg {
  animation: camp-cta-nudge 0.55s ease-in-out infinite alternate;
}

/* Sayaç tik */
.home-campaigns__fraction [data-campaign-fraction-current].is-tick {
  animation: camp-fraction-tick 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scrollbar parıltı */
.home-campaigns--motion .home-campaigns__scrollbar .swiper-scrollbar-drag {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.home-campaigns--motion .home-campaigns__scrollbar.swiper-scrollbar-dragging .swiper-scrollbar-drag,
.home-campaigns--motion .home-campaigns__scrollbar:active .swiper-scrollbar-drag {
  box-shadow: 0 0 16px rgba(227, 6, 19, 0.45);
  transform: scaleY(1.15);
}

@media (prefers-reduced-motion: no-preference) {
  .home-campaigns--motion .home-campaigns__chip {
    animation: camp-chip-float 6.5s ease-in-out infinite;
  }

  .home-campaigns--motion .home-campaigns__chip--a { animation-delay: 0s; }
  .home-campaigns--motion .home-campaigns__chip--b { animation-delay: -1.1s; }
  .home-campaigns--motion .home-campaigns__chip--c { animation-delay: -2.2s; }
  .home-campaigns--motion .home-campaigns__chip--d { animation-delay: -3.3s; }
  .home-campaigns--motion .home-campaigns__chip--e { animation-delay: -4.2s; }
  .home-campaigns--motion .home-campaigns__chip--f { animation-delay: -2.8s; }

  .home-campaigns--motion.is-revealed .home-campaigns__chip {
    animation:
      camp-chip-float 6.5s ease-in-out infinite,
      camp-chip-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home-campaigns--motion.is-revealed .home-campaigns__chip--a { animation-delay: 0.2s, 0s; }
  .home-campaigns--motion.is-revealed .home-campaigns__chip--b { animation-delay: 0.35s, -1.1s; }
  .home-campaigns--motion.is-revealed .home-campaigns__chip--c { animation-delay: 0.5s, -2.2s; }
  .home-campaigns--motion.is-revealed .home-campaigns__chip--d { animation-delay: 0.65s, -3.3s; }
  .home-campaigns--motion.is-revealed .home-campaigns__chip--e { animation-delay: 0.8s, -4.2s; }
  .home-campaigns--motion.is-revealed .home-campaigns__chip--f { animation-delay: 0.95s, -2.8s; }

  .home-campaigns--motion .swiper-slide-active .home-camp-card--editorial {
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.55s ease,
      opacity 0.45s ease;
  }

  .home-campaigns--motion .swiper-slide:not(.swiper-slide-active) .home-camp-card--editorial {
    transition:
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.45s ease;
  }
}

@keyframes camp-head-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes camp-swiper-in {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes camp-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes camp-chip-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
    opacity: 0.72;
  }
}

@keyframes camp-chip-in {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.92);
  }
  to {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes camp-index-pop {
  0% {
    transform: scale(0.85);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes camp-cta-nudge {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(3px);
  }
}

@keyframes camp-fraction-tick {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-campaigns--motion.is-revealed .home-campaigns__head,
  .home-campaigns--motion.is-revealed .home-campaigns__swiper,
  .home-campaigns--motion.is-revealed .home-campaigns__footer,
  .home-campaigns--motion.is-revealed .swiper-slide .home-camp-card--editorial {
    animation: none;
  }

  .home-campaigns--motion .home-campaigns__chip {
    animation: none;
    opacity: 0.5;
  }

  .home-campaigns--motion .swiper-slide-active .home-camp-card--editorial,
  .home-campaigns--motion .swiper-slide:not(.swiper-slide-active) .home-camp-card--editorial {
    transform: none;
    opacity: 1;
  }
}
