/**
 * DersaneAI — React görsel deneme katmanı (1.4.4)
 */
#dai-react-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dai-rx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  will-change: transform;
  animation: daiRxFloat 18s ease-in-out infinite;
}

.dai-rx-orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  left: -8%;
  top: -6%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.35), transparent 70%);
}

.dai-rx-orb-b {
  width: min(46vw, 360px);
  height: min(46vw, 360px);
  right: -10%;
  top: 18%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 70%);
  animation-delay: -6s;
}

.dai-rx-orb-c {
  width: min(58vw, 480px);
  height: min(58vw, 480px);
  left: 20%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(18, 22, 31, 0.08), transparent 70%);
  animation-delay: -11s;
}

html[data-theme="dark"] .dai-rx-orb-a {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 70%);
  opacity: 0.55;
}
html[data-theme="dark"] .dai-rx-orb-b {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 70%);
}
html[data-theme="dark"] .dai-rx-orb-c {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
}

@keyframes daiRxFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(18px, 22px, 0) scale(1.05); }
  70% { transform: translate3d(-12px, 10px, 0) scale(0.97); }
}

body.dai-react-on .container,
body.dai-react-on .dai-navbar,
body.dai-react-on .dai-dock {
  position: relative;
  z-index: 1;
}

/* transform kalan kartlar WebView'da YouTube iframe'i küçültür — video kartını hariç tut */
body.dai-react-on .card:not(.vd-cinema):not(.vd-lessons-card):not(.vd-filters):not(.vd-empty) {
  animation: daiRxCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.dai-react-on .card:not(.vd-cinema):nth-of-type(2) { animation-delay: 0.04s; }
body.dai-react-on .card:not(.vd-cinema):nth-of-type(3) { animation-delay: 0.08s; }
body.dai-react-on .card:not(.vd-cinema):nth-of-type(4) { animation-delay: 0.12s; }

body.dai-react-on .vd-cinema,
body.dai-react-on .vd-screen,
body.dai-react-on .vd-iframe {
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

@keyframes daiRxCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dai-rx-orb,
  body.dai-react-on .card {
    animation: none !important;
  }
}
