@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

/* Base transitions for all animations */
.item-transition {
    will-change: transform, opacity;
    /* Prevent layout shifts during animations */
    backface-visibility: hidden;
}

/* Enter animation: start from above and fade in */
.item-enter {
    opacity: 0;
    transform: translateY(-40px);
    z-index: 20; /* Keep entering items above others */
}

/* Exit animation: fade out and move down slightly */
.item-exit {
    /* Animation settings no longer needed as we use clone approach */
}

/* Button glow animation */
@keyframes button-glow {
    0% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
    25% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.7), 0 0 30px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.4); }
    75% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.7), 0 0 30px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); }
}

.button-glow {
    animation: button-glow 3s infinite;
    position: relative;
}

/* Additional outer glow effect */
.button-glow::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 16px;
    background: linear-gradient(to right, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0));
    opacity: 0;
    z-index: -1;
    animation: outer-pulse 3s infinite ease-in-out;
}

@keyframes outer-pulse {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Button pulse animation */
@keyframes button-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.button-pulse {
    animation: button-pulse 2s infinite;
}

/* Countdown styling */
.countdown-block {
    display: inline-block;
    background-color: #1e40af;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 2.5rem;
    text-align: center;
}

.countdown-separator {
    display: inline-block;
    margin: 0 2px;
    font-weight: bold;
    color: #1e40af;
}

/* Animated arrow icon */
@keyframes slide-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.claim-now-icon {
    animation: slide-bounce 1.5s ease-in-out infinite;
} 