/* ==========================================================================
   ELOVA — ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Desktop Cursor
   -------------------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--elova-green);
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-editorial),
              height 0.25s var(--ease-editorial),
              background-color 0.25s ease,
              opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--off-white);
  text-transform: uppercase;
  user-select: none;
  opacity: 0;
}

.custom-cursor.is-active {
  opacity: 1;
}

.custom-cursor.is-hover {
  width: 72px;
  height: 72px;
  background-color: rgba(19, 87, 45, 0.88);
  backdrop-filter: blur(8px);
  mix-blend-mode: normal;
  color: var(--off-white);
  box-shadow: 0 8px 24px rgba(19, 87, 45, 0.28);
}

.custom-cursor.is-hover-light {
  width: 72px;
  height: 72px;
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(8px);
  color: var(--elova-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.custom-cursor.is-hover-interactive {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.2) !important;
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   2. Scroll Trigger Reveal Helpers
   -------------------------------------------------------------------------- */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-editorial), transform 0.8s var(--ease-editorial);
}

.reveal-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.reveal-clip-left {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-editorial);
}

.reveal-clip-left.is-inview {
  clip-path: inset(0 0% 0 0);
}

.reveal-scale-in {
  transform: scale(1.08);
  opacity: 0;
  transition: transform 1.2s var(--ease-editorial), opacity 0.8s ease;
}

.reveal-scale-in.is-inview {
  transform: scale(1);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--elova-green-deeper);
  color: var(--off-white);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(8, 36, 19, 0.25);
  z-index: 1000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-editorial);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   4. Floating Ingredients Animation
   -------------------------------------------------------------------------- */
.floating-ingredient-card {
  transition: transform 0.5s var(--ease-editorial);
}

.floating-ingredient-card:hover {
  transform: translateY(-8px);
}

/* --------------------------------------------------------------------------
   5. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-pulse {
  animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}
