/* Gas Tariq Khalifan — motion layer */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-rtl {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-select {
  0% { box-shadow: 0 0 0 0 var(--ember-glow); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.anim-fade-up {
  animation: fade-up 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.anim-scale-in {
  animation: scale-in 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.anim-float {
  animation: float-soft 3.6s ease-in-out infinite;
}

.anim-slide-in {
  animation: slide-in 0.32s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

html[dir="rtl"] .anim-slide-in {
  animation-name: slide-in-rtl;
}

.anim-pulse {
  animation: pulse-select 0.55s ease-out;
}

.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.07s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.17s; }
.stagger > *:nth-child(5) { animation-delay: 0.22s; }
.stagger > *:nth-child(6) { animation-delay: 0.27s; }
.stagger > *:nth-child(7) { animation-delay: 0.32s; }
.stagger > *:nth-child(8) { animation-delay: 0.37s; }

.stagger > .panel,
.stagger > .kitchen-card,
.login-shell .login-card,
.login-shell .login-brand {
  animation: fade-up 0.5s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.login-shell .login-brand {
  animation: scale-in 0.55s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.login-shell .login-logo.anim-float,
.login-shell .login-brand.anim-float .login-logo {
  animation: float-soft 3.6s ease-in-out 0.55s infinite;
}

.pos-layout.stagger > .pos-side { animation-delay: 0.04s; }
.pos-layout.stagger > .pos-menu { animation-delay: 0.1s; }
.pos-layout.stagger > .pos-cart { animation-delay: 0.16s; }

.pos-layout.stagger > .pos-side,
.pos-layout.stagger > .pos-menu,
.pos-layout.stagger > .pos-cart {
  animation: fade-up 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.menu-item.press-pop:active:not(:disabled) {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim-float,
  .login-shell .login-logo.anim-float,
  .kitchen-queue.has-orders {
    animation: none !important;
  }
}
