/* Animations CSS for Treasuretrap */

/* This file imports all animation components */

/* Import transitions and basic animations */
@import 'animations-transitions.css';

/* Import card animations */
@import 'animations-cards.css';

/* Import special effects */
@import 'animations-effects.css';

/* Import UI animations */
@import 'animations-ui.css';

/* Import keyframe definitions */
@import 'animations-keyframes.css';

/* Streak Bonus Animation */
.streak-bonus {
    color: #ffcc00 !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #ff8800, 0 0 10px #ff4400 !important;
    animation: streak-bonus-animation 2s ease-out forwards !important;
    font-size: 1.8rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes streak-bonus-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.4);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -40px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(0.8);
    }
}

/* Compass Bonus Animation */
.compass-bonus {
    color: #3399ff !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #0066cc, 0 0 10px #0044aa !important;
    animation: compass-bonus-animation 2s ease-out forwards !important;
    font-size: 1.8rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes compass-bonus-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -25px) scale(1.4);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -75px) scale(0.8);
    }
}

/* Gemstone Bonus Animation */
.gemstone-bonus {
    color: #d742f5 !important; /* Purple for gemstone */
    font-weight: bold !important;
    text-shadow: 0 0 15px #a700ff, 0 0 10px #8000ca !important;
    animation: gemstone-bonus-animation 2s ease-out forwards !important;
    font-size: 1.8rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes gemstone-bonus-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -25px) scale(1.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -45px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -85px) scale(0.8);
    }
}

/* Negative card reveal animation */
@keyframes shake {
    0% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.negative-reveal {
    position: relative;
    overflow: visible;
}

.negative-reveal::after {
    content: "IT'S A TRAP!";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    animation: fade-in-out 3s forwards;
    z-index: 100;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
}

@keyframes fade-in-out {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Market Ban Animation */
.market-banned {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* Gemstone Potent Effect */
.gemstone-potent {
    animation: gemstone-pulse 2s infinite !important;
    box-shadow: 0 0 15px rgba(215, 66, 245, 0.8) !important;
    border: 2px solid #9b59b6 !important;
}

.gemstone-potency {
    background-color: #9b59b6 !important;
    border: 2px solid #c39bd3 !important;
    animation: gemstone-badge-pulse 2s infinite alternate !important;
}

@keyframes gemstone-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(215, 66, 245, 0.6); }
    50% { transform: scale(1.12); box-shadow: 0 0 20px rgba(215, 66, 245, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(215, 66, 245, 0.6); }
}

@keyframes gemstone-badge-pulse {
    0% { box-shadow: 0 0 5px rgba(215, 66, 245, 0.5); }
    100% { box-shadow: 0 0 10px rgba(215, 66, 245, 0.9); }
}

.market-banned::after {
    content: "🚫";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6em;
    color: #e74c3c;
    z-index: 10;
    animation: pulse 2s infinite;
}

.market-banned::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 0, 0, 0.15);
    border-radius: inherit;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Error Text Animation */
.error {
    color: #ff3333 !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #cc0000, 0 0 10px #aa0000 !important;
    animation: error-animation 2s ease-out forwards !important;
    font-size: 1.8rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes error-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.4);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -40px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(0.8);
    }
}

/* Antidote Effect */
.antidote-active {
    animation: antidote-pulse 2s infinite alternate !important;
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.8) !important;
    border: 2px solid #27ae60 !important;
}

@keyframes antidote-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(80, 200, 120, 0.6); }
    100% { transform: scale(1.1); box-shadow: 0 0 20px rgba(80, 200, 120, 0.9); }
}

/* Lantern Effect */
.lantern-active {
    animation: lantern-pulse 3s infinite alternate !important;
    box-shadow: 0 0 15px rgba(255, 230, 150, 0.8) !important;
    border: 2px solid #f39c12 !important;
}

@keyframes lantern-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 230, 150, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(255, 230, 150, 1); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 230, 150, 0.6); }
}

/* Charm Effect */
.charm-active {
    animation: charm-pulse 2.5s infinite alternate !important;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.8) !important;
    border: 2px solid #8e44ad !important;
}

@keyframes charm-pulse {
    0% { transform: scale(1) rotate(0deg); box-shadow: 0 0 15px rgba(142, 68, 173, 0.6); }
    100% { transform: scale(1.12) rotate(10deg); box-shadow: 0 0 20px rgba(142, 68, 173, 0.9); }
}

/* Crystal Effect */
.crystal-active {
    animation: crystal-pulse 2s infinite !important;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.8) !important;
    border: 2px solid #3498db !important;
}

@keyframes crystal-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(52, 152, 219, 0.6); }
    50% { transform: scale(1.15); box-shadow: 0 0 25px rgba(52, 152, 219, 1); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(52, 152, 219, 0.6); }
}

/* Effect Removed Animation */
.effect-removed {
    color: #2ecc71 !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #27ae60, 0 0 10px #218c54 !important;
    animation: effect-removed-animation 2.5s ease-out forwards !important;
    font-size: 1.6rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes effect-removed-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80px) scale(0.8);
    }
}

/* Effect Reduced Animation */
.effect-reduced {
    color: #3498db !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #2980b9, 0 0 10px #1c6ea4 !important;
    animation: effect-reduced-animation 2.5s ease-out forwards !important;
    font-size: 1.5rem !important;
    z-index: 10000 !important;
    pointer-events: none !important;
}

@keyframes effect-reduced-animation {
    0% {
        opacity: 0;
        transform: translate(-50%, 5px) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -15px) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -40px) scale(1.0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70px) scale(0.7);
    }
} 