/* ==================== EMPTY STATES ==================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== ANIMATIONS ==================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== LEVEL UP ANIMATIONS ==================== */

@keyframes levelUp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--accent);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px 10px var(--accent);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress-width, 0%); }
}

@keyframes levelGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent);
        opacity: 0.5;
    }
    50% {
        box-shadow: 0 0 20px var(--accent);
        opacity: 0.8;
    }
}

@keyframes achievementUnlock {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ==================== PROGRESS BAR ANIMATIONS ==================== */

.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-fill {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Level up animation trigger */
.level-up-animation {
    animation: levelUp 0.8s ease-out;
}

/* Achievement unlock animation */
.achievement-unlock-animation {
    animation: achievementUnlock 0.6s ease-out;
}