/* Ana sayfa slayt geçişleri (16 Kasım 2026). Swiper 4 "fade" temelinde: tüm slaytlar görünür ve üst üste; etkin slayt en üstte (z 2) ve
   görsel katmanı (.home-slider-img) seçilen efektle girer. --tb-hiz geçiş süresi (ms), --tb-kb Ken Burns süresi (gösterim süresi kadar).
   Panelde de aynı sınıflarla önizlenir (.tb-pv). */
.home-slider.tb-gecis .swiper-slide { opacity: 1 !important; }
.home-slider.tb-gecis .swiper-slide-active { z-index: 2; }
.home-slider.tb-gecis .swiper-slide-active .home-slider-img { animation-duration: var(--tb-hiz, 100ms); animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: both; will-change: transform, opacity, clip-path, filter; }
.home-slider.tb-gecis .swiper-slide-active .home-slider-img { transition: none; }

/* temel */
.tb-gecis-fade .swiper-slide-active .home-slider-img { animation-name: tb-fade; }
@keyframes tb-fade { from { opacity: 0; } to { opacity: 1; } }
.tb-gecis-cross-zoom .swiper-slide-active .home-slider-img { animation-name: tb-cross-zoom; }
@keyframes tb-cross-zoom { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
.tb-gecis-blur .swiper-slide-active .home-slider-img { animation-name: tb-blur; }
@keyframes tb-blur { from { opacity: 0; filter: blur(28px); } to { opacity: 1; filter: blur(0); } }
.tb-gecis-flash .swiper-slide-active .home-slider-img { animation-name: tb-flash; }
@keyframes tb-flash { 0% { opacity: 0; filter: brightness(3); } 40% { opacity: 1; filter: brightness(2.2); } 100% { opacity: 1; filter: brightness(1); } }
.tb-gecis-gray .swiper-slide-active .home-slider-img { animation-name: tb-gray; }
@keyframes tb-gray { from { opacity: 0; filter: grayscale(1); } 35% { opacity: 1; filter: grayscale(1); } to { opacity: 1; filter: grayscale(0); } }
.tb-gecis-sepia .swiper-slide-active .home-slider-img { animation-name: tb-sepia; }
@keyframes tb-sepia { from { opacity: 0; filter: sepia(1); } 35% { opacity: 1; filter: sepia(1); } to { opacity: 1; filter: sepia(0); } }

/* kayma */
.tb-gecis-slide-left .swiper-slide-active .home-slider-img { animation-name: tb-slide-left; }
@keyframes tb-slide-left { from { transform: translateX(100%); } to { transform: translateX(0); } }
.tb-gecis-slide-right .swiper-slide-active .home-slider-img { animation-name: tb-slide-right; }
@keyframes tb-slide-right { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.tb-gecis-slide-up .swiper-slide-active .home-slider-img { animation-name: tb-slide-up; }
@keyframes tb-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tb-gecis-slide-down .swiper-slide-active .home-slider-img { animation-name: tb-slide-down; }
@keyframes tb-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.tb-gecis-slide-zoom-left .swiper-slide-active .home-slider-img { animation-name: tb-slide-zoom-left; }
@keyframes tb-slide-zoom-left { from { transform: translateX(60%) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
.tb-gecis-slide-zoom-right .swiper-slide-active .home-slider-img { animation-name: tb-slide-zoom-right; }
@keyframes tb-slide-zoom-right { from { transform: translateX(-60%) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
.tb-gecis-drop .swiper-slide-active .home-slider-img { animation-name: tb-drop; animation-timing-function: cubic-bezier(.34, 1.4, .64, 1); }
@keyframes tb-drop { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* yakınlaşma */
.tb-gecis-zoom-in .swiper-slide-active .home-slider-img { animation-name: tb-zoom-in; }
@keyframes tb-zoom-in { from { transform: scale(1.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tb-gecis-zoom-out .swiper-slide-active .home-slider-img { animation-name: tb-zoom-out; }
@keyframes tb-zoom-out { from { transform: scale(.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tb-gecis-elastic .swiper-slide-active .home-slider-img { animation-name: tb-elastic; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tb-elastic { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tb-gecis-bounce .swiper-slide-active .home-slider-img { animation-name: tb-bounce; animation-timing-function: linear; }
@keyframes tb-bounce { 0% { transform: scale(.5); opacity: 0; } 55% { transform: scale(1.06); opacity: 1; } 75% { transform: scale(.97); } 100% { transform: scale(1); } }

/* Ken Burns: gösterim süresi boyunca sürekli hareket */
.tb-gecis-kb-in .swiper-slide-active .home-slider-img, .tb-gecis-kb-out .swiper-slide-active .home-slider-img, .tb-gecis-kb-left .swiper-slide-active .home-slider-img, .tb-gecis-kb-right .swiper-slide-active .home-slider-img { animation-duration: var(--tb-kb, 6s); animation-timing-function: linear; }
.tb-gecis-kb-in .swiper-slide-active .home-slider-img { animation-name: tb-kb-in; }
@keyframes tb-kb-in { from { opacity: 0; transform: scale(1); } 12% { opacity: 1; } to { opacity: 1; transform: scale(1.14); } }
.tb-gecis-kb-out .swiper-slide-active .home-slider-img { animation-name: tb-kb-out; }
@keyframes tb-kb-out { from { opacity: 0; transform: scale(1.14); } 12% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
.tb-gecis-kb-left .swiper-slide-active .home-slider-img { animation-name: tb-kb-left; }
@keyframes tb-kb-left { from { opacity: 0; transform: scale(1.12) translateX(3%); } 12% { opacity: 1; } to { opacity: 1; transform: scale(1.18) translateX(-3%); } }
.tb-gecis-kb-right .swiper-slide-active .home-slider-img { animation-name: tb-kb-right; }
@keyframes tb-kb-right { from { opacity: 0; transform: scale(1.12) translateX(-3%); } 12% { opacity: 1; } to { opacity: 1; transform: scale(1.18) translateX(3%); } }

/* silme */
.tb-gecis-wipe-left .swiper-slide-active .home-slider-img { animation-name: tb-wipe-left; }
@keyframes tb-wipe-left { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-wipe-right .swiper-slide-active .home-slider-img { animation-name: tb-wipe-right; }
@keyframes tb-wipe-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-wipe-up .swiper-slide-active .home-slider-img { animation-name: tb-wipe-up; }
@keyframes tb-wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-wipe-down .swiper-slide-active .home-slider-img { animation-name: tb-wipe-down; }
@keyframes tb-wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-wipe-diag .swiper-slide-active .home-slider-img { animation-name: tb-wipe-diag; }
@keyframes tb-wipe-diag { from { clip-path: polygon(0 0, 0 0, 0 0); } to { clip-path: polygon(0 0, 200% 0, 0 200%); } }
.tb-gecis-wipe-diag-rev .swiper-slide-active .home-slider-img { animation-name: tb-wipe-diag-rev; }
@keyframes tb-wipe-diag-rev { from { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); } to { clip-path: polygon(100% 100%, -100% 100%, 100% -100%); } }
.tb-gecis-split-h .swiper-slide-active .home-slider-img { animation-name: tb-split-h; }
@keyframes tb-split-h { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-split-v .swiper-slide-active .home-slider-img { animation-name: tb-split-v; }
@keyframes tb-split-v { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
.tb-gecis-blinds-v .swiper-slide-active .home-slider-img { animation-name: tb-blinds-v; }
@keyframes tb-blinds-v { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%, 20% 0, 20% 0, 20% 100%, 20% 100%, 40% 0, 40% 0, 40% 100%, 40% 100%, 60% 0, 60% 0, 60% 100%, 60% 100%, 80% 0, 80% 0, 80% 100%, 80% 100%); } to { clip-path: polygon(0 0, 20% 0, 20% 100%, 0 100%, 20% 0, 40% 0, 40% 100%, 20% 100%, 40% 0, 60% 0, 60% 100%, 40% 100%, 60% 0, 80% 0, 80% 100%, 60% 100%, 80% 0, 100% 0, 100% 100%, 80% 100%); } }
.tb-gecis-blinds-h .swiper-slide-active .home-slider-img { animation-name: tb-blinds-h; }
@keyframes tb-blinds-h { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0, 0 20%, 100% 20%, 100% 20%, 0 20%, 0 40%, 100% 40%, 100% 40%, 0 40%, 0 60%, 100% 60%, 100% 60%, 0 60%, 0 80%, 100% 80%, 100% 80%, 0 80%); } to { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 20%, 100% 20%, 100% 40%, 0 40%, 0 40%, 100% 40%, 100% 60%, 0 60%, 0 60%, 100% 60%, 100% 80%, 0 80%, 0 80%, 100% 80%, 100% 100%, 0 100%); } }

/* iris */
.tb-gecis-iris-circle .swiper-slide-active .home-slider-img { animation-name: tb-iris-circle; }
@keyframes tb-iris-circle { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
.tb-gecis-iris-diamond .swiper-slide-active .home-slider-img { animation-name: tb-iris-diamond; }
@keyframes tb-iris-diamond { from { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); } to { clip-path: polygon(50% -60%, 160% 50%, 50% 160%, -60% 50%); } }
.tb-gecis-iris-hex .swiper-slide-active .home-slider-img { animation-name: tb-iris-hex; }
@keyframes tb-iris-hex { from { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%); } to { clip-path: polygon(50% -80%, 165% -15%, 165% 115%, 50% 180%, -65% 115%, -65% -15%); } }
.tb-gecis-iris-square .swiper-slide-active .home-slider-img { animation-name: tb-iris-square; }
@keyframes tb-iris-square { from { clip-path: inset(50% 50% 50% 50%); } to { clip-path: inset(0 0 0 0); } }

/* döndürme / 3B */
.tb-gecis-rotate-in .swiper-slide-active .home-slider-img { animation-name: tb-rotate-in; }
@keyframes tb-rotate-in { from { transform: rotate(-6deg) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
.tb-gecis-spin-in .swiper-slide-active .home-slider-img { animation-name: tb-spin-in; }
@keyframes tb-spin-in { from { transform: rotate(-180deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.tb-gecis-skew-in .swiper-slide-active .home-slider-img { animation-name: tb-skew-in; }
@keyframes tb-skew-in { from { transform: skewX(-18deg) translateX(40%) scale(1.15); opacity: 0; } to { transform: none; opacity: 1; } }
.tb-gecis-flip-h .swiper-slide-active .home-slider-img { animation-name: tb-flip-h; transform-origin: 50% 50%; }
@keyframes tb-flip-h { from { transform: perspective(1400px) rotateY(90deg); opacity: 0; } 50% { opacity: 1; } to { transform: perspective(1400px) rotateY(0); opacity: 1; } }
.tb-gecis-flip-v .swiper-slide-active .home-slider-img { animation-name: tb-flip-v; transform-origin: 50% 50%; }
@keyframes tb-flip-v { from { transform: perspective(1400px) rotateX(-90deg); opacity: 0; } 50% { opacity: 1; } to { transform: perspective(1400px) rotateX(0); opacity: 1; } }

/* panel önizlemesi (Swiper yok): iki katman üst üste */
.tb-pv { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #0F172A; }
.tb-pv .swiper-slide { position: absolute; inset: 0; }
.tb-pv .home-slider-img { position: absolute; inset: 0; background-position: center; background-size: cover; }

@media (prefers-reduced-motion: reduce) {
	.home-slider.tb-gecis .swiper-slide-active .home-slider-img { animation: tb-fade 300ms ease both !important; }
}
