/* Micro-Animations & Transitions for Pro Notes */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pinFlip {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(-25deg) scale(1.3);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(235, 131, 23, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(235, 131, 23, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(235, 131, 23, 0);
  }
}

@keyframes rippleEffect {
  0% {
    width: 0px;
    height: 0px;
    opacity: 0.5;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.3s ease-out forwards;
}

.pin-anim {
  animation: pinFlip 0.4s ease;
}

.glow-btn {
  animation: pulseGlow 2s infinite;
}

/* Hover & Interactive Transitions */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(16, 55, 92, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .glass-card {
  background: rgba(16, 55, 92, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
