/* ==========================================================================
   Convo Monitor Motion layer
   Spec: HotelEar_Premium_Shell_Motion.md §4–§6, §13
   transform/opacity only, <320ms, honours prefers-reduced-motion.
   ========================================================================== */

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes rise-in {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes card-slide-in {
  0% { transform: translateY(-14px); opacity: 0; }
  60% { box-shadow: 0 0 0 3px var(--primary-soft); }
  100% { transform: translateY(0); opacity: 1; box-shadow: var(--shadow-xs); }
}

@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Page-load stagger for card grids (applied via .reveal) */

/* Skeleton loading placeholders */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  color: transparent;
  pointer-events: none;
}

/* Toasts */
.toast { animation: rise-in var(--dur-base) var(--ease-out) both; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .device-card.alerting, .badge-alert::before { animation: none !important; }
  
}