/* Keyframe Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 145, 0, 0.9), 0 0 30px rgba(255, 69, 0, 0.5);
    }
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes ember {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-800px) translateX(var(--translateX));
        opacity: 0;
    }
}

@keyframes rotateFire {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Fire Button Animation */
.cta-button, .play-now-btn, .submit-btn, .back-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after, 
.play-now-btn::after, 
.submit-btn::after, 
.back-button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: url('../images/fire-line.png') repeat-x;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::after, 
.play-now-btn:hover::after, 
.submit-btn:hover::after, 
.back-button:hover::after {
    opacity: 0.7;
    animation: flicker 1s infinite alternate;
}

/* Lion Logo Animation */
.lion-logo {
    position: relative;
}

.lion-logo::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, rgba(255, 69, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite alternate;
    z-index: -1;
}

/* Game Card Hover Effects */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 69, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1;
}

/* Particle animation for ember effect */
.ember-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: radial-gradient(ellipse at center, rgba(255, 145, 0, 0.8) 0%, rgba(255, 69, 0, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: ember var(--duration) ease-out forwards;
    opacity: 0;
    filter: blur(1px);
}