/* ==========================================================================
   AKFA PIN - Ultra Smooth Micro-Animations & Physics Transitions
   Cubic-Bezier Easing, Smooth Micro-Rotations, Springs & Glides
   ========================================================================== */

/* Smooth View Transitions */
@keyframes smoothViewIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Slide Up with Spring Effect */
@keyframes smoothSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Star Icon Rotate & Pulse on Selection */
@keyframes starPulseRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  40% {
    transform: scale(1.25) rotate(16deg);
  }
  75% {
    transform: scale(0.95) rotate(-6deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Premium Star Spin Micro-Animation */
@keyframes premStarSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }
  40% {
    transform: scale(1.22) rotate(-22deg);
  }
  75% {
    transform: scale(0.96) rotate(6deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Tarix Icon Smooth Counter-Clockwise Rotate */
@keyframes counterClockwiseSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* NFT Grid 4-Squares Pop Micro-Animation */
@keyframes nftGridPop {
  0% {
    transform: scale(0.85) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(45deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Floating Soft Glow */
@keyframes softPulseGlow {
  0% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
  }
  100% {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }
}

/* Shimmer Highlight */
@keyframes smoothShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Smooth Icon Hover Floating */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Utility animation classes */
.anim-smooth-in {
  animation: smoothViewIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-star-pop {
  animation: starPulseRotate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-counter-spin {
  animation: counterClockwiseSpin 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
