/* =====================================================================
   عيادتك PRO — Motion & animations
   ===================================================================== */
@keyframes pro-fade-in{from{opacity:0}to{opacity:1}}
@keyframes pro-fade-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes pro-modal-in{from{opacity:0;transform:translateY(30px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pro-pop-in{from{opacity:0;transform:translateY(-6px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pro-slide-down{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes pro-ripple{to{transform:scale(4);opacity:0}}
@keyframes pro-shimmer{to{transform:translateX(-100%)}}
@keyframes pro-progress{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes pro-toast-in{from{opacity:0;transform:translateX(-40px) scale(.9)}to{opacity:1;transform:none}}
@keyframes pro-toast-out{to{opacity:0;transform:translateX(-40px) scale(.9);height:0;padding-block:0;margin:0}}
@keyframes pro-float{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(30px,-25px) scale(1.06)}66%{transform:translate(-20px,20px) scale(.96)}}
@keyframes pro-float-sm{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes pro-pulse-ring{0%{box-shadow:0 0 0 0 rgba(252,130,12,.5)}70%{box-shadow:0 0 0 12px rgba(252,130,12,0)}100%{box-shadow:0 0 0 0 rgba(252,130,12,0)}}
@keyframes pro-view-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Page / view transitions */
.view.active.pro-view-enter{animation:pro-view-in .5s var(--pro-ease);}
.dash-main.pro-tab-enter>*{animation:pro-fade-up .45s var(--pro-ease) both;}
.dash-main.pro-tab-enter>*:nth-child(2){animation-delay:.05s}
.dash-main.pro-tab-enter>*:nth-child(3){animation-delay:.1s}
.dash-main.pro-tab-enter>*:nth-child(4){animation-delay:.15s}
.dash-main.pro-tab-enter>*:nth-child(n+5){animation-delay:.2s}

/* Better scroll reveal (works with the existing .reveal/.in classes) */
.reveal{opacity:0;transform:translateY(32px);transition:opacity .8s var(--pro-ease),transform .8s var(--pro-ease)!important;}
.reveal.in{opacity:1;transform:none;}

/* Staggered children reveal (class added by pro-ui.js) */
.pro-stagger>*{opacity:0;transform:translateY(22px);}
.pro-stagger.in>*{animation:pro-fade-up .6s var(--pro-ease) forwards;}
.pro-stagger.in>*:nth-child(1){animation-delay:.02s}
.pro-stagger.in>*:nth-child(2){animation-delay:.08s}
.pro-stagger.in>*:nth-child(3){animation-delay:.14s}
.pro-stagger.in>*:nth-child(4){animation-delay:.2s}
.pro-stagger.in>*:nth-child(5){animation-delay:.26s}
.pro-stagger.in>*:nth-child(6){animation-delay:.32s}
.pro-stagger.in>*:nth-child(7){animation-delay:.38s}
.pro-stagger.in>*:nth-child(8){animation-delay:.44s}
.pro-stagger.in>*:nth-child(n+9){animation-delay:.5s}

/* Hero entrance */
.hero-copy>*{animation:pro-fade-up .8s var(--pro-ease) both;}
.hero-copy>*:nth-child(2){animation-delay:.08s}
.hero-copy>*:nth-child(3){animation-delay:.16s}
.hero-copy>*:nth-child(4){animation-delay:.24s}
.hero-copy>*:nth-child(5){animation-delay:.32s}
.hero-copy>*:nth-child(6){animation-delay:.4s}
.hero-image-wrap{animation:pro-fade-up 1s var(--pro-ease) .2s both;}
.search-wrap{animation:pro-fade-up .9s var(--pro-ease) .35s both;}

/* Attention pulse for the main CTA in the header */
.header-actions>.btn-primary{animation:pro-pulse-ring 2.6s ease-out 1.5s 3;}

/* Respect user preference */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
  .reveal,.pro-stagger>*{opacity:1!important;transform:none!important;}
}

