/* Swipe animations */
@keyframes swipe-out-right {
    to {
        transform: translateX(150%) rotate(30deg);
        opacity: 0;
    }
}

@keyframes swipe-out-left {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

@keyframes card-enter {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.card-entering {
    animation: card-enter 300ms ease forwards;
}

.card-swiping-right {
    animation: swipe-out-right 300ms ease forwards;
}

.card-swiping-left {
    animation: swipe-out-left 300ms ease forwards;
}

/* Toast animations */
@keyframes toast-slide-out {
    to {
        transform: translateX(-50%) translateY(-120%);
        opacity: 0;
    }
}

.toast-exit {
    animation: toast-slide-out 300ms ease forwards;
}

/* Achievement toast */
.achievement-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-card), var(--color-card-lighter));
    border: 1px solid var(--color-teal);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
    animation: achievement-in 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
}

@keyframes achievement-in {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.achievement-toast-emoji {
    font-size: 32px;
}

.achievement-toast-text {
    display: flex;
    flex-direction: column;
}

.achievement-toast-label {
    font-size: 11px;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.achievement-toast-title {
    font-size: 16px;
    font-weight: 700;
}

.achievement-toast-desc {
    font-size: 12px;
    color: var(--color-text-dim);
}

/* Shimmer loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-card) 25%,
        var(--color-card-lighter) 50%,
        var(--color-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Fun loading messages animation */
@keyframes message-cycle {
    0%, 15% { opacity: 1; transform: translateY(0); }
    20%, 100% { opacity: 0; transform: translateY(-8px); }
}
