/* TicareX — Ortak premium efekt katmanı (SSS + yasal sayfalar) */

@property --rx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.page-fx {
  background: #070d14;
  overflow-x: clip;
}

.page-fx::before {
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(255, 184, 0, 0.10), transparent 55%),
    radial-gradient(ellipse 45% 35% at 88% 38%, rgba(126, 87, 194, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 35% at 8% 70%, rgba(38, 198, 218, 0.06), transparent 55%);
}

.page-fx .site-header,
.page-fx main,
.page-fx .cta-band,
.page-fx .site-footer {
  position: relative;
  z-index: 2;
}

/* ── Scroll progress / partiküller / spotlight ── */

.rx-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, #ffb800, #ffd24d, #ffb800);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.6);
  pointer-events: none;
}

.rx-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.rx-spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    560px circle at var(--sx, 50%) var(--sy, 35%),
    rgba(255, 184, 0, 0.055),
    transparent 70%
  );
}

.rx-spotlight.is-on { opacity: 1; }

/* ── Scroll reveal (yalnızca JS yüklendiyse) ── */

.fx .page-fx [data-reveal] {
  opacity: 0;
  translate: 0 38px;
}

.fx .page-fx [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 100ms),
    translate 0.85s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 100ms);
}

/* ── Yasal sayfalar: hero girişi ── */

.page-fx .page-legal > h1 {
  opacity: 0;
  animation: fxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.page-fx .page-legal > h1::before {
  content: "Yasal Bilgilendirme";
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
}

.page-fx .page-legal > h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 14px rgba(255, 184, 0, 0.5);
}

.page-fx .page-legal > .meta {
  opacity: 0;
  animation: fxFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* ── Yasal sayfalar: premium kartlar ── */

.page-fx .card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      420px circle at var(--mx) var(--my),
      rgba(255, 184, 0, 0.05),
      transparent 65%
    ),
    linear-gradient(155deg, rgba(24, 33, 46, 0.96), rgba(8, 12, 19, 0.99));
  transition: border-color 0.25s, box-shadow 0.25s;
}

.page-fx .card:hover {
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.page-fx .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--rx-angle),
    transparent 0%,
    rgba(255, 220, 130, 0.9) 12%,
    transparent 26%,
    transparent 55%,
    rgba(255, 184, 0, 0.45) 68%,
    transparent 82%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rxSpin 7s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-fx .card:hover::after { opacity: 1; }

.page-fx .card h2 {
  position: relative;
  padding-left: 14px;
}

.page-fx .card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(255, 184, 0, 0.2));
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.45);
}

/* ── Keyframes ── */

@keyframes fxFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rxSpin {
  to { --rx-angle: 360deg; }
}

/* ── Embed modu (uygulama içi WebView): efektler kapalı ── */

.faq-embed .rx-progress,
.faq-embed .rx-particles,
.faq-embed .rx-spotlight {
  display: none;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .rx-spotlight { display: none; }
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .page-fx .page-legal > h1,
  .page-fx .page-legal > .meta {
    opacity: 1;
    animation: none;
  }

  .fx .page-fx [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .page-fx .card::after {
    animation: none !important;
  }

  .rx-particles,
  .rx-spotlight { display: none; }
}
