/* Mishkat Animations */

/* Points counting animation */
@keyframes pointsPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.points-pop {
    animation: pointsPop 0.4s ease-out;
}

/* Star burst for points gain */
@keyframes starBurst {
    0% { opacity: 1; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(360deg) translateY(-30px); }
}
.star-burst {
    animation: starBurst 0.8s ease-out forwards;
}

/* Rank-up explosion */
@keyframes rankUpPulse {
    0% { transform: scale(0.5); opacity: 0; }
    30% { transform: scale(1.2); opacity: 1; }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}
.rank-up-enter {
    animation: rankUpPulse 0.6s ease-out;
}

/* Draw spinning */
@keyframes drawSpin {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-10px); opacity: 0.7; }
    100% { transform: translateY(0); opacity: 1; }
}
.draw-spin {
    animation: drawSpin 0.15s ease-in-out;
}

/* Slide in from right (RTL) */
@keyframes slideInRight {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.slide-in {
    animation: slideInRight 0.3s ease-out;
}

/* Fade in up */
@keyframes fadeInUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* Gentle pulse for waiting */
@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.gentle-pulse {
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Confetti particles */
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.confetti-particle {
    animation: confetti 1s ease-out forwards;
    position: absolute;
    pointer-events: none;
}

/* Shake for notifications */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.3s ease-in-out 3;
}

/* Counter count-up effect */
@keyframes countUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.count-up {
    animation: countUp 0.3s ease-out;
}

/* Loading spinner */
.mishkat-loader {
    width: 48px;
    height: 48px;
    border: 4px solid #E8B4B8;
    border-top-color: #6B2C91;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
