/* حركة الموقع (تجربة 13 نوفمبر، قالب «ليل» بس). الجزء اللي بيشتغل بالـ JS بـ src/app/site/[slug]/motion.tsx */

/* Lenis (كمبيوتر بس): السكرول الناعم الأصلي للمتصفح بيتعارك معه */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* دخول الواجهة: CSS بس (بلا ما نستنى الـ JS). النص ظاهر من أول لحظة (سرعة الفتح، 15 نوفمبر)، وبس بيطلع شوي لفوق. ما منقطّع الحروف */
  .hero > img { animation: m-settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation: m-rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .actions > * { animation: m-rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .actions > :nth-child(2) { animation-delay: .08s; }
  @keyframes m-settle { from { scale: 1.06; } to { scale: 1; } }
  @keyframes m-rise { from { translate: 0 18px; } to { translate: 0 0; } }

  /* ضوء ذهبي بيلحق الماوس على صورة السيارة (فكرة SpotlightCard من React Bits) */
  @media (pointer: fine) {
    .car-media::before {
      content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 1;
      background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, color-mix(in srgb, var(--accent) 45%, #fff) 42%, transparent), transparent 62%);
      mix-blend-mode: screen; opacity: 0; transition: opacity .35s;
    }
    .car:hover .car-media::before { opacity: 1; }
    .car-media .photos, .car-media .status, .car-media > span { z-index: 2; }
  }
}
