/* Astral Traveler — premium motion layer (v1.2.32) */

@keyframes alya-float-orb-3d {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.04); }
  100% { transform: translate(-10px, 10px) scale(0.98); }
}

@keyframes alya-liquid-glow {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

@keyframes alya-confirm-bounce-3d {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes alya-slide-modal-3d {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes alya-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes alya-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.28); }
  70% { box-shadow: 0 0 0 10px rgba(108, 92, 231, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

@keyframes alya-loader-orbit {
  to { transform: rotate(360deg); }
}

.alya-hs-search__orb--1 { animation: alya-float-orb-3d 22s infinite alternate; }
.alya-hs-search__orb--2 { animation: alya-float-orb-3d 28s infinite alternate-reverse; }
.alya-hs-search__orb--3 {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.22;
  background: var(--warning, #fdcb6e);
  top: 45%;
  left: 48%;
  pointer-events: none;
  animation: alya-float-orb-3d 18s infinite ease-in-out;
}

.alya-hs-icon-3d {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 3px 6px rgba(108, 92, 231, 0.18));
}
svg.alya-hs-icon-3d {
  overflow: visible;
  max-width: 100%;
}

.alya-hs-icon-3d--lg { width: 48px; height: 48px; }
.alya-hs-icon-3d--xl { width: 88px; height: 88px; }

.alya-hs-icon-3d--hero {
  width: 64px;
  height: 64px;
  animation: alya-icon-bob 5s ease-in-out infinite;
}

.alya-hs-btn:hover .alya-hs-icon-3d,
.alya-hs-search__field:focus-within .alya-hs-icon-3d {
  transform: scale(1.06);
}

.alya-hs-btn--search {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3d, 0 10px 24px -8px rgba(108, 92, 231, 0.32));
}

.alya-hs-btn--search::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, #6c5ce7, #00b4d8, #6c5ce7);
  background-size: 300% 100%;
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  animation: alya-liquid-glow 4s linear infinite;
  transition: opacity 0.35s ease;
}

.alya-hs-btn--search:hover::before {
  opacity: 0.55;
}

.alya-hs-modal__dialog {
  animation: alya-slide-modal-3d 0.35s ease;
}

.alya-hs-confirmation__badge,
.alya-hs-confirmation--celebrate .alya-hs-icon-3d--xl {
  animation: alya-confirm-bounce-3d 0.7s ease;
}

.alya-hs-loader-3d {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  border: 3px solid rgba(108, 92, 231, 0.18);
  border-top-color: #6c5ce7;
  animation: alya-loader-orbit 0.8s linear infinite;
}

.alya-hs-loader-3d.is-active {
  animation: alya-loader-orbit 0.8s linear infinite, alya-pulse-ring 1.6s ease-out infinite;
}

.alya-hs-toast {
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.alya-hs-toast.is-visible,
.alya-hs-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.alya-hs-field-icon {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.alya-hs-search__field.has-icon-3d input,
.alya-hs-search__field.has-icon-3d select {
  padding-left: 44px;
}

.alya-hs-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100050;
}

@media (max-width: 768px) {
  .alya-hs-search__orb--1,
  .alya-hs-search__orb--2,
  .alya-hs-search__orb--3 {
    filter: blur(40px);
    opacity: 0.18;
    animation: none;
  }

  .alya-hs-icon-3d--hero {
    animation: none;
  }

  .alya-hs-btn--search::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alya-hs-search__orb--1,
  .alya-hs-search__orb--2,
  .alya-hs-search__orb--3,
  .alya-hs-icon-3d--hero,
  .alya-hs-card,
  .alya-hs-btn--search::before,
  .alya-hs-loader-3d,
  .alya-hs-confirmation__badge,
  .alya-hs-modal__dialog,
  .alya-hs-search__hero::before {
    animation: none !important;
    transition: none !important;
  }

  .alya-hs-card:hover {
    transform: none !important;
  }

  .alya-hs-toast,
  .alya-hs-toast.is-visible {
    transform: none;
    opacity: 1;
  }
}
