/* Projeler sayfası: sekme geçiş animasyonları */

/* Panel: yumuşak solma (Bootstrap'in .fade geçişini yavaşlatır) */
.tab-content > .tab-pane.fade {
  transition: opacity .45s ease;
}

/* Kartlar: her sekme açıldığında (panel display:none -> block olduğunda animasyon yeniden başlar) sırayla yukarı kayarak gelir */
.tab-content > .tab-pane.active .tab-post-item {
  animation: tabCardIn .7s cubic-bezier(.22, .8, .3, 1) both;
}

.tab-content > .tab-pane.active .tab-post-item:nth-child(1)  { animation-delay: .00s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(2)  { animation-delay: .06s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(3)  { animation-delay: .12s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(4)  { animation-delay: .18s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(5)  { animation-delay: .24s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(6)  { animation-delay: .30s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(7)  { animation-delay: .36s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(8)  { animation-delay: .42s; }
.tab-content > .tab-pane.active .tab-post-item:nth-child(n+9) { animation-delay: .48s; }

/* Kayma sırasında yatay kaydırma çubuğu çıkmasın */
.tab-content { overflow-x: clip; }

/* Kartlar sağdan sola kayarak yerine oturur */
@keyframes tabCardIn {
  from { opacity: 0; transform: translateX(120px); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}

/* Sekme başlıkları: renk geçişi yumuşak olsun */
.work-wrapper-bottom > ul > li > a {
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

/* Hareketi azaltmayı tercih edenler için animasyon kapalı */
@media (prefers-reduced-motion: reduce) {
  .tab-content > .tab-pane.fade { transition: none; }
  .tab-content > .tab-pane.active .tab-post-item { animation: none; }
}
