/* ============================================================
   interactions.css — Avora Global Micro-interaction Layer
   Lux 🎨 2026-03-09
   ============================================================ */

/* ── Ripple ─────────────────────────────────────────────── */
.ripple-host { position: relative; overflow: hidden; }

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  opacity: .28;
  background: currentColor;
  pointer-events: none;
  animation: ripple-grow .55s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes ripple-grow {
  to { transform: scale(4); opacity: 0; }
}

/* ── Press Scale ─────────────────────────────────────────── */
.press-scale {
  transition: transform .12s cubic-bezier(.34,1.56,.64,1) !important;
  -webkit-tap-highlight-color: transparent;
}
.press-scale:active { transform: scale(.92) !important; }

/* ── Input Focus Glow ────────────────────────────────────── */
.input-glow {
  transition: box-shadow .2s ease, border-color .2s ease !important;
}
.input-glow:focus {
  box-shadow: 0 0 0 3px rgba(0,229,255,.18), 0 0 12px rgba(0,229,255,.08) !important;
  outline: none;
}

/* ── Success Pop ─────────────────────────────────────────── */
@keyframes success-pop {
  0%   { transform: scale(.7); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  80%  { transform: scale(.95); }
  100% { transform: scale(1); opacity: 1; }
}
.feedback-success { animation: success-pop .4s cubic-bezier(.34,1.56,.64,1) both; }

/* ── Error Shake ─────────────────────────────────────────── */
@keyframes error-shake {
  0%,100% { transform: translateX(0); }
  18%      { transform: translateX(-7px); }
  36%      { transform: translateX(6px); }
  54%      { transform: translateX(-5px); }
  72%      { transform: translateX(4px); }
  88%      { transform: translateX(-2px); }
}
.feedback-error { animation: error-shake .45s ease both; }

/* ── Page Transition ─────────────────────────────────────── */
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: page-in .28s cubic-bezier(.4,0,.2,1) both; }

/* ── Toast notification ──────────────────────────────────── */
#ix-toast-wrap {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none;
}
.ix-toast {
  background: rgba(30,30,46,.95); color: #e0e0f0;
  font-size: 13px; padding: 8px 18px; border-radius: 20px; white-space: nowrap;
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08);
  animation: toast-in .3s cubic-bezier(.34,1.56,.64,1) both;
}
.ix-toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.9); } }

/* ── Send Button Pulse ───────────────────────────────────── */
@keyframes send-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,229,255,.45); } 70% { box-shadow: 0 0 0 10px rgba(0,229,255,0); } 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); } }
.send-pulse { animation: send-pulse .5s ease; }
