/**
 * ZAX Gamification Effects Stylesheet
 * EXP animations, level-up modals, and effects
 *
 * @package ZAX_Comments
 * @version 1.0.0
 */

/* EXP Floating Animation */
.zax-exp-float {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease-out;
}

/* Level-Up Modal */
.zax-levelup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.zax-levelup-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.zax-levelup-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.zax-levelup-modal__content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--zax-comments-surface, #2a2a2a);
    border: 2px solid var(--zax-comments-primary, #4a9eff);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(74, 158, 255, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.zax-levelup-modal--visible .zax-levelup-modal__content {
    transform: scale(1);
}

.zax-levelup-modal__icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.zax-levelup-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--zax-comments-text, #e0e0e0);
    margin: 0 0 12px;
}

.zax-levelup-modal__level {
    font-size: 20px;
    color: var(--zax-comments-primary, #4a9eff);
    margin: 0 0 8px;
}

.zax-levelup-modal__tier {
    font-size: 16px;
    color: var(--zax-comments-text-muted, #999);
    margin: 0 0 24px;
}

.zax-levelup-modal__exp {
    margin: 24px 0;
}

.zax-levelup-modal__exp-bar {
    height: 12px;
    background: var(--zax-comments-surface-2, #333);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.zax-levelup-modal__exp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--zax-comments-primary, #4a9eff), var(--zax-glow-primary, rgba(74, 158, 255, 0.5)));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.zax-levelup-modal__exp-text {
    font-size: 12px;
    color: var(--zax-comments-text-muted, #999);
}

.zax-levelup-modal__button {
    padding: 12px 32px;
    background: var(--zax-comments-primary, #4a9eff);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.zax-levelup-modal__button:hover {
    background: #3a8eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

@media (max-width: 768px) {
    .zax-levelup-modal__content {
        padding: 32px 24px;
    }
    
    .zax-levelup-modal__title {
        font-size: 24px;
    }
    
    .zax-levelup-modal__icon {
        font-size: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zax-levelup-modal,
    .zax-levelup-modal__content,
    .zax-levelup-modal__icon {
        transition: none;
        animation: none;
    }
}

