/* ───────────────────────────────────────────────────────────────
   FUELED · animations.css
   Keyframes que NO maneja Motion One (las springs de tap/tab van por JS).
   ─────────────────────────────────────────────────────────────── */

/* Entrada de pantallas al cambiar de tab */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen__inner {
  animation: fadeInUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Skeleton shimmer (para fases con carga de datos / análisis) */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 37%,
    var(--bg-card) 63%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}

/* Pulso del LED de conexión cuando está probando */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.conn--testing .conn__led {
  background: var(--warning);
  animation: pulse 0.9s ease-in-out infinite;
}

/* Toast in/out */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast {
  animation: toastIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Barra de progreso indeterminada (análisis del plan) */
@keyframes indeterminate {
  0% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(360%);
  }
}

/* Respeta usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
