/* ═══════════════════════════════════════════
   SendenSana — Animations
   ═══════════════════════════════════════════ */

/* Page transitions */
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* (Star pulse removed — replaced by 4 focus types in components.css) */

/* Breath animations */
@keyframes breathe478-inhale {
  from { transform: scale(0.6); }
  to { transform: scale(1); }
}

@keyframes breathe478-hold {
  from { transform: scale(1); }
  to { transform: scale(1); }
}

@keyframes breathe478-exhale {
  from { transform: scale(1); }
  to { transform: scale(0.6); }
}

@keyframes breatheBox {
  0%   { transform: scale(0.6); }
  25%  { transform: scale(1); }
  50%  { transform: scale(1); }
  75%  { transform: scale(0.6); }
  100% { transform: scale(0.6); }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--c-primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--c-primary-glow), 0 0 60px rgba(139, 92, 246, 0.1);
  }
}

/* Subtle float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Card entrance stagger */
.practice-card {
  animation: cardIn var(--dur-slow) var(--ease-out) both;
}

.practice-card:nth-child(1) { animation-delay: 0ms; }
.practice-card:nth-child(2) { animation-delay: 50ms; }
.practice-card:nth-child(3) { animation-delay: 100ms; }
.practice-card:nth-child(4) { animation-delay: 150ms; }
.practice-card:nth-child(5) { animation-delay: 200ms; }
.practice-card:nth-child(6) { animation-delay: 250ms; }
.practice-card:nth-child(7) { animation-delay: 300ms; }
.practice-card:nth-child(8) { animation-delay: 350ms; }
.practice-card:nth-child(9) { animation-delay: 400ms; }

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
