/* ============================================================
   YAlpCreative — FX katmanı
   3D tilt + scroll-reveal + carousel  (sıfır bağımlılık)
   İçerik asla gizlenmez: hide kuralları yalnızca html.fx-ready
   varken ve prefers-reduced-motion: no-preference iken aktiftir.
   ============================================================ */

html { scroll-behavior: smooth; }

/* Erişilebilir klavye odağı */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.fx-ready :is(.card,.pc,.testimonial,.stat,.faq-item,.section-title,.stl,.section-label,.sl,.section-sub,.ssub,[data-reveal]) {
    opacity: 0;
  }
  /* Tilt verilmeyen öğeler yükselerek girer */
  html.fx-ready :is(.testimonial,.stat,.faq-item,.section-title,.stl,.section-label,.sl,.section-sub,.ssub,[data-reveal]) {
    transform: translate3d(0, 28px, 0);
  }
  /* Kartlar yalnızca yumuşak fade (transform tilt'e ayrılmıştır) */
  html.fx-ready :is(.card,.pc).fx-in {
    opacity: 1;
    transition: opacity .7s ease;
  }
  html.fx-ready :is(.testimonial,.stat,.faq-item,.section-title,.stl,.section-label,.sl,.section-sub,.ssub,[data-reveal]).fx-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  }
}

/* ---------- 3D tilt (yalnızca masaüstü işaretçi) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .fx-tilt { will-change: transform; transform-style: preserve-3d; }
}

/* ---------- Carousel (Canva sunumu yerine) ---------- */
.fx-carousel {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px -32px rgba(0,0,0,.85);
  outline: none;
}
.fx-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.fx-track img {
  min-width: 100%;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.fx-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
  z-index: 2;
}
.fx-nav:hover { background: rgba(37,99,235,.92); }
.fx-nav:active { transform: translateY(-50%) scale(.94); }
.fx-prev { left: 12px; }
.fx-next { right: 12px; }
.fx-counter {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .03em;
  padding: 4px 11px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  z-index: 2;
}
.fx-dots {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.fx-dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .25s, width .25s;
}
.fx-dots button.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .fx-nav { width: 38px; height: 38px; font-size: 1.3rem; }
}
