/* Battle Animations CSS */

/* Animation for items moving to winner */
@keyframes move-to-winner {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    20% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }
    40% {
        transform: scale(0.95) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Apply the animation to items being moved to winner */
.animate-move-to-winner {
    animation: move-to-winner 0.5s ease-out forwards;
    opacity: 0;
}

/* Add a highlight effect for items that weren't originally from the winner */
.stolen-item {
    position: relative;
    overflow: hidden;
}

.stolen-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(34, 197, 94, 0.2) 50%, 
        transparent 100%);
    animation: shine 1s ease-out;
    z-index: 10;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
