/* KolHaSeforim motion layer v1 (Nov 10 2026) — press/spring, staggered reveals, sliding indicators, drag lift.
   Everything is scoped to html.mo, which anim.js sets only when the reader has NOT asked for reduced motion. */
@media (prefers-reduced-motion:no-preference){
html.mo{--spr:cubic-bezier(.34,1.56,.64,1);--out:cubic-bezier(.22,1,.36,1)}
html.mo :is(.btn,.go,.chip,.cat,.card,.bk,.cta,.seg button,.tabbar a,.ibtn,.wh,.lang button,.az a,.az button,.topnav a,.sugg a,.qst button){
  -webkit-tap-highlight-color:transparent;
  transition:opacity .3s ease,transform .34s var(--out),scale .32s var(--spr),translate .32s var(--spr),rotate .32s var(--spr),box-shadow .3s ease,border-color .3s ease,background-color .25s ease,color .25s ease}
html.mo .prs{scale:.96!important;transition-duration:.3s,.34s,.11s,.11s,.11s,.2s,.2s,.2s,.2s!important}
html.mo .cat:active:not(.tl),html.mo .btn:active{transform:none}
/* ripple */
html.mo :is(.chip,.cta,.seg button,.go,.tabbar a){position:relative;overflow:hidden}
html.mo .rpl{position:absolute;border-radius:50%;pointer-events:none;background:var(--rpl,rgba(176,141,87,.30));transform:scale(0);opacity:1;animation:mo-rpl .34s var(--out) forwards;z-index:0}
html.mo :is(.go,.btn.pri,.seg button[aria-pressed=true]) .rpl{--rpl:rgba(250,248,243,.32)}
@keyframes mo-rpl{to{transform:scale(1);opacity:0}}
/* staggered fade-up (the existing reveal, made quicker and springier) */
html.mo .reveal{opacity:0;transform:translate3d(0,16px,0) scale(.985)}
html.mo .reveal.in{opacity:1;transform:none}
html.mo .reveal.anim{transition:opacity .3s ease,transform .36s var(--spr),scale .11s,translate .32s var(--spr)}
html.mo .card.reveal{animation:none}
/* hover lift + soft gold glow (mouse only) */
@media (hover:hover) and (pointer:fine){
  html.mo .card:hover,html.mo .bk:hover{translate:0 -4px}
  html.mo .cat:hover{box-shadow:0 14px 30px -18px rgba(28,35,51,.45),0 0 0 1px rgba(176,141,87,.45),0 0 26px -10px rgba(176,141,87,.55)}
  html.mo .chip:hover{translate:0 -1px;box-shadow:0 6px 16px -10px rgba(176,141,87,.6)}
  html.mo .btn:hover,html.mo .go:hover{box-shadow:0 8px 20px -12px rgba(28,35,51,.5),0 0 0 1px rgba(176,141,87,.35)}
}
/* wishlist heart: spring pop + gold burst */
html.mo .wh{overflow:visible}
html.mo .wh.pop{animation:mo-heart .34s var(--out)}
@keyframes mo-heart{0%{scale:1}25%{scale:.78}60%{scale:1.32}100%{scale:1}}
html.mo .wburst{position:absolute;inset:0;pointer-events:none}
html.mo .wburst::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #B08D57;opacity:.7;animation:mo-ring .34s var(--out) forwards}
html.mo .wburst i{position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2.5px;border-radius:50%;background:#B08D57;transform:rotate(var(--a)) translateY(0);animation:mo-dot .34s var(--out) forwards}
html.mo .wburst i:nth-child(even){background:#D9BE8C;width:4px;height:4px;margin:-2px}
@keyframes mo-ring{from{transform:scale(.4)}to{transform:scale(1.7);opacity:0}}
@keyframes mo-dot{to{transform:rotate(var(--a)) translateY(-24px) scale(.4);opacity:0}}
/* search: smooth expand on focus, suggestions slide in */
html.mo .sbox{transition:box-shadow .3s ease,border-color .3s ease,scale .32s var(--spr)}
html.mo .sbox:focus-within{scale:1.015}
html.mo .sugg:not([hidden]){animation:mo-drop .26s var(--out)}
html.mo .sugg>*{animation:mo-fade .24s var(--out) both}
html.mo .sugg>*:nth-child(2){animation-delay:.025s}html.mo .sugg>*:nth-child(3){animation-delay:.05s}html.mo .sugg>*:nth-child(4){animation-delay:.075s}html.mo .sugg>*:nth-child(5){animation-delay:.1s}html.mo .sugg>*:nth-child(n+6){animation-delay:.12s}
@keyframes mo-drop{from{opacity:0;translate:0 -8px;scale:.98}}
@keyframes mo-fade{from{opacity:0;translate:0 6px}}
/* sefer page cover: gently lifts and zooms while pressed */
html.mo .sp-cov{transition:scale .32s var(--spr),translate .32s var(--spr);cursor:zoom-in}
html.mo .sp-cov.lift{scale:1.04;translate:0 -6px}
html.mo .sp-cov .cv{transition:box-shadow .3s ease}
html.mo .sp-cov.lift .cv{box-shadow:0 0 0 1px var(--line),0 30px 44px -18px rgba(28,35,51,.55)}
/* sliding indicators: segmented tabs, bottom tab bar, desktop top nav */
html.mo .seg.has-ind{position:relative}
html.mo .seg.has-ind button{position:relative;z-index:1}
html.mo .seg.has-ind button[aria-pressed=true]{background:transparent}
html.mo .mo-ind{position:absolute;z-index:0;pointer-events:none;transition:left .34s var(--spr),width .34s var(--spr),top .34s var(--spr),opacity .2s}
html.mo .seg .mo-ind{border-radius:14px;background:var(--ink)}
html.mo .tabbar.has-ind a{z-index:1}
html.mo .tabbar.has-ind a.on::before{display:none}
html.mo .tabbar .mo-ind{border-radius:18px;background:rgba(176,141,87,.13)}
html.mo .tabbar .mo-ind::before{content:"";position:absolute;top:2px;left:50%;width:18px;height:3px;margin-left:-9px;border-radius:2px;background:#B08D57}
html.mo .tabbar a.on svg{animation:mo-tb .32s var(--spr)}
@keyframes mo-tb{0%{scale:.82}100%{scale:1}}
html.mo .topnav.has-ind{position:relative}
html.mo .topnav.has-ind a.on{text-decoration:none}
html.mo .topnav .mo-ind{height:1.5px;background:#B08D57;border-radius:1px}
/* rows you can drag or swipe: the card under the finger lifts and tilts, then springs back */
html.mo .mo-drag{cursor:grabbing;user-select:none;-webkit-user-select:none}
html.mo .mo-lift{scale:1.05!important;rotate:var(--rot,3deg);z-index:5;position:relative;transition-duration:.3s,.34s,.18s,.18s,.18s,.2s!important}
html.mo .mo-lift .cv,html.mo .chip.mo-lift{box-shadow:0 0 0 1px var(--line),0 22px 34px -14px rgba(28,35,51,.5)}
/* numbers / badges pop */
html.mo .mo-pop{animation:mo-pop .34s var(--spr)}
@keyframes mo-pop{0%{scale:.6}60%{scale:1.18}100%{scale:1}}
/* page change: quick fade-up */
html.mo .mo-page{animation:mo-page .28s var(--out)}
@keyframes mo-page{from{opacity:0;translate:0 10px}}
}
