/* Lucky Spin 777 - Advanced Animations CSS */
/* Premium Gaming Platform Animation Effects */

/* Keyframe Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 161, 76, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 161, 76, 0.6), 0 0 60px rgba(201, 161, 76, 0.3);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes neonGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(201, 161, 76, 0.5),
            0 0 10px rgba(201, 161, 76, 0.3),
            0 0 15px rgba(201, 161, 76, 0.2);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(201, 161, 76, 0.8),
            0 0 20px rgba(201, 161, 76, 0.6),
            0 0 30px rgba(201, 161, 76, 0.4);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg);
    }
}

@keyframes flipInY {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes wobble {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-25%) rotate(-5deg);
    }
    30% {
        transform: translateX(20%) rotate(3deg);
    }
    45% {
        transform: translateX(-15%) rotate(-3deg);
    }
    60% {
        transform: translateX(10%) rotate(2deg);
    }
    75% {
        transform: translateX(-5%) rotate(-1deg);
    }
    100% {
        transform: translateX(0%);
    }
}

@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

@keyframes jackInTheBox {
    from {
        opacity: 0;
        transform: scale(0.1) rotate(30deg);
        transform-origin: center bottom;
    }
    50% {
        transform: rotate(-10deg);
    }
    70% {
        transform: rotate(3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes lightSpeedIn {
    from {
        opacity: 0;
        transform: translateX(100%) skewX(-30deg);
    }
    60% {
        opacity: 1;
        transform: translateX(-20%) skewX(30deg);
    }
    80% {
        transform: translateX(0%) skewX(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0%) skewX(0deg);
    }
}

@keyframes rollIn {
    from {
        opacity: 0;
        transform: translateX(-100%) rotate(-120deg);
    }
    to {
        opacity: 1;
        transform: translateX(0%) rotate(0deg);
    }
}

@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes rubberBand {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scaleX(1.25) scaleY(0.75);
    }
    40% {
        transform: scaleX(0.75) scaleY(1.25);
    }
    50% {
        transform: scaleX(1.15) scaleY(0.85);
    }
    65% {
        transform: scaleX(0.95) scaleY(1.05);
    }
    75% {
        transform: scaleX(1.05) scaleY(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

@keyframes fadeInLeftBig {
    from {
        opacity: 0;
        transform: translateX(-200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRightBig {
    from {
        opacity: 0;
        transform: translateX(200px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUpBig {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDownBig {
    from {
        opacity: 0;
        transform: translateY(-200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Casino-specific animations */
@keyframes slotMachine {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(-40px);
    }
    75% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes chipStack {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes diceRoll {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rouletteSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes jackpotCounter {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px #C9A14C,
            0 0 10px #C9A14C,
            0 0 15px #C9A14C,
            0 0 20px #C9A14C;
    }
    50% {
        text-shadow: 
            0 0 10px #C9A14C,
            0 0 20px #C9A14C,
            0 0 30px #C9A14C,
            0 0 40px #C9A14C;
    }
}

@keyframes goldShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes spotlight {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

.animate-slideInUp {
    animation: slideInUp 0.8s ease-out;
}

.animate-slideInDown {
    animation: slideInDown 0.8s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.8s ease-out;
}

.animate-rotateIn {
    animation: rotateIn 0.8s ease-out;
}

.animate-flipInX {
    animation: flipInX 0.8s ease-out;
}

.animate-flipInY {
    animation: flipInY 0.8s ease-out;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

.animate-tada {
    animation: tada 1s ease-in-out;
}

.animate-heartBeat {
    animation: heartBeat 1.3s ease-in-out infinite;
}

.animate-jackInTheBox {
    animation: jackInTheBox 1s ease-out;
}

.animate-lightSpeedIn {
    animation: lightSpeedIn 1s ease-out;
}

.animate-rollIn {
    animation: rollIn 1s ease-out;
}

.animate-swing {
    animation: swing 1s ease-in-out;
}

.animate-rubberBand {
    animation: rubberBand 1s ease-in-out;
}

.animate-flash {
    animation: flash 1s ease-in-out;
}

.animate-fadeInLeftBig {
    animation: fadeInLeftBig 1s ease-out;
}

.animate-fadeInRightBig {
    animation: fadeInRightBig 1s ease-out;
}

.animate-fadeInUpBig {
    animation: fadeInUpBig 1s ease-out;
}

.animate-fadeInDownBig {
    animation: fadeInDownBig 1s ease-out;
}

/* Casino-specific animation classes */
.animate-slotMachine {
    animation: slotMachine 2s ease-in-out infinite;
}

.animate-cardFlip {
    animation: cardFlip 0.6s ease-in-out;
}

.animate-chipStack {
    animation: chipStack 2s ease-in-out infinite;
}

.animate-diceRoll {
    animation: diceRoll 1s ease-in-out;
}

.animate-rouletteSpin {
    animation: rouletteSpin 3s linear infinite;
}

.animate-jackpotCounter {
    animation: jackpotCounter 0.5s ease-in-out infinite;
}

.animate-confetti {
    animation: confetti 3s ease-out forwards;
}

.animate-neonPulse {
    animation: neonPulse 2s ease-in-out infinite;
}

.animate-goldShimmer {
    background: linear-gradient(90deg, transparent, rgba(201, 161, 76, 0.4), transparent);
    background-size: 200% 100%;
    animation: goldShimmer 2s ease-in-out infinite;
}

.animate-spotlight {
    position: relative;
    overflow: hidden;
}

.animate-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: spotlight 3s ease-in-out infinite;
}

/* Hover animations */
.hover-glow:hover {
    animation: glow 1s ease-in-out infinite;
}

.hover-pulse:hover {
    animation: pulse 1s ease-in-out infinite;
}

.hover-shake:hover {
    animation: shake 0.5s ease-in-out;
}

.hover-wobble:hover {
    animation: wobble 1s ease-in-out;
}

.hover-tada:hover {
    animation: tada 1s ease-in-out;
}

.hover-bounce:hover {
    animation: bounceIn 0.6s ease-in-out;
}

.hover-flip:hover {
    animation: cardFlip 0.6s ease-in-out;
}

.hover-rubberBand:hover {
    animation: rubberBand 1s ease-in-out;
}

.hover-swing:hover {
    animation: swing 1s ease-in-out;
}

.hover-heartBeat:hover {
    animation: heartBeat 1.3s ease-in-out;
}

.hover-jackInTheBox:hover {
    animation: jackInTheBox 1s ease-out;
}

.hover-lightSpeedIn:hover {
    animation: lightSpeedIn 1s ease-out;
}

.hover-rollIn:hover {
    animation: rollIn 1s ease-out;
}

/* Staggered animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

.animate-stagger-6 {
    animation-delay: 0.6s;
}

/* Infinite animations */
.animate-infinite {
    animation-iteration-count: infinite;
}

.animate-slow {
    animation-duration: 3s;
}

.animate-fast {
    animation-duration: 0.5s;
}

/* Animation utilities */
.animate-pause {
    animation-play-state: paused;
}

.animate-resume {
    animation-play-state: running;
}

.animate-reverse {
    animation-direction: reverse;
}

.animate-alternate {
    animation-direction: alternate;
}

/* Performance optimizations */
.animate-gpu {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeInUp,
    .animate-fadeInLeft,
    .animate-fadeInRight,
    .animate-fadeInDown,
    .animate-slideInLeft,
    .animate-slideInRight,
    .animate-slideInUp,
    .animate-slideInDown,
    .animate-zoomIn,
    .animate-rotateIn,
    .animate-flipInX,
    .animate-flipInY,
    .animate-bounceIn,
    .animate-shake,
    .animate-wobble,
    .animate-tada,
    .animate-heartBeat,
    .animate-jackInTheBox,
    .animate-lightSpeedIn,
    .animate-rollIn,
    .animate-swing,
    .animate-rubberBand,
    .animate-flash,
    .animate-fadeInLeftBig,
    .animate-fadeInRightBig,
    .animate-fadeInUpBig,
    .animate-fadeInDownBig,
    .animate-slotMachine,
    .animate-cardFlip,
    .animate-chipStack,
    .animate-diceRoll,
    .animate-rouletteSpin,
    .animate-jackpotCounter,
    .animate-confetti,
    .animate-neonPulse,
    .animate-goldShimmer,
    .animate-spotlight {
        animation: none;
    }
    
    .hover-glow:hover,
    .hover-pulse:hover,
    .hover-shake:hover,
    .hover-wobble:hover,
    .hover-tada:hover,
    .hover-bounce:hover,
    .hover-flip:hover,
    .hover-rubberBand:hover,
    .hover-swing:hover,
    .hover-heartBeat:hover,
    .hover-jackInTheBox:hover,
    .hover-lightSpeedIn:hover,
    .hover-rollIn:hover {
        animation: none;
    }
}

/* Animation performance classes */
.animate-will-change {
    will-change: transform, opacity;
}

.animate-transform-gpu {
    transform: translateZ(0);
    will-change: transform;
}

.animate-opacity-gpu {
    will-change: opacity;
}

/* Custom casino animations */
.casino-entrance {
    animation: fadeInUp 0.8s ease-out, glow 2s ease-in-out 0.8s infinite;
}

.vip-entrance {
    animation: jackInTheBox 1s ease-out, neonPulse 2s ease-in-out 1s infinite;
}

.jackpot-celebration {
    animation: tada 1s ease-in-out, confetti 3s ease-out 1s forwards;
}

.win-animation {
    animation: bounceIn 0.6s ease-out, goldShimmer 2s ease-in-out 0.6s infinite;
}

.loss-animation {
    animation: shake 0.5s ease-in-out, fadeInDown 0.8s ease-out;
}

.bonus-reveal {
    animation: flipInY 0.8s ease-out, glow 1s ease-in-out 0.8s infinite;
}

.spin-animation {
    animation: rouletteSpin 3s linear, pulse 0.5s ease-in-out 3s infinite;
}

.card-deal {
    animation: slideInUp 0.6s ease-out, cardFlip 0.6s ease-in-out 0.6s;
}

.chip-place {
    animation: bounceIn 0.4s ease-out, chipStack 2s ease-in-out 0.4s infinite;
}

.dice-throw {
    animation: diceRoll 1s ease-in-out, tada 0.5s ease-in-out 1s;
}
