/* תנועה קטנה שעושה את האתר כיפי: כניסת כרטיסים, קפיצה בבחירה, "נשמר" שקופץ, פיזור נקודות קטן בהצלחה.
   הכול קצר (עד חצי שנייה) ולא מעכב אף פעולה. "הפחתת תנועה" במכשיר או בתפריט הנגישות מבטלת הכול
   (הכלל הכללי ב-style.css מקצר כל אנימציה, ו-motion.js לא מפעיל פיזור וספירה). */

/* מעבר רך בין עמודים, בדפדפנים שתומכים */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

/* כרטיסי התוצאות עולים ונכנסים, הראשונים בזה אחר זה */
@keyframes mo-rise { from { opacity: 0; transform: translateY(12px); } }
.results > .result:not(.skel) { animation: mo-rise .34s var(--ease) backwards; }
.results > .result:nth-child(2) { animation-delay: 40ms; } .results > .result:nth-child(3) { animation-delay: 80ms; }
.results > .result:nth-child(4) { animation-delay: 120ms; } .results > .result:nth-child(5) { animation-delay: 160ms; }
.results > .result:nth-child(6) { animation-delay: 200ms; } .results > .result:nth-child(7) { animation-delay: 240ms; }
.results > .result:nth-child(8) { animation-delay: 280ms; }

/* קפיצה קצרה בלחיצה על צ'יפ, אריח קטגוריה, "עזר לי" וכוכב בביקורת */
@keyframes mo-pop { 0% { transform: scale(.88); } 55% { transform: scale(1.07); } 100% { transform: none; } }
.mo-pop { animation: mo-pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.cat:active .cat-img { transform: scale(.94); }
.chip:active { transform: scale(.96); }

/* הודעת הצלחה ("נשמר", "תודה") קופצת פנימה */
@keyframes mo-note { 0% { opacity: 0; transform: translateY(-6px) scale(.96); } 60% { transform: translateY(0) scale(1.02); } 100% { opacity: 1; transform: none; } }
.ok-note { animation: mo-note .45s var(--ease) backwards; position: relative; }

/* כפתור שהצליח (הקישור הועתק): וי קטן שמצטייר */
@keyframes mo-check { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.mo-ok { display: inline-block; vertical-align: -.12em; margin-inline-end: .35em; }
.mo-ok path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; animation: mo-check .3s .05s var(--ease) backwards; }

/* פיזור נקודות קטן מסביב לכפתור או להודעה */
.mo-burst { position: fixed; z-index: 200; width: 0; height: 0; pointer-events: none; }
.mo-burst i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--primary); animation: mo-fly .55s cubic-bezier(.15, .7, .3, 1) forwards; }
.mo-burst i:nth-child(3n+1) { background: var(--accent, #e0a530); } .mo-burst i:nth-child(3n+2) { background: var(--active, #2e7d4f); width: 5px; height: 5px; }
@keyframes mo-fly { from { opacity: 1; transform: translate(0, 0) scale(1); } 65% { opacity: 1; } to { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }

/* הכתר: נדנוד קצר כשהעמוד נפתח */
@keyframes mo-crown { 0% { transform: translateY(-10px) rotate(-14deg) scale(.7); opacity: 0; } 55% { transform: translateY(0) rotate(7deg) scale(1.1); opacity: 1; } 78% { transform: rotate(-4deg); } 100% { transform: none; } }
.me-crown.has svg { animation: mo-crown .7s .15s cubic-bezier(.2, 1.3, .4, 1) backwards; transform-origin: 50% 90%; }

/* מספר הנקודות קופץ כשהספירה מסתיימת */
.me-points b.mo-pop { display: inline-block; }
