/* XP Progress Bar Styling */
.xp-progress-container {
    margin: 24px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.xp-level {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-label {
    font-size: 0.9em;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-level-number {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xp-earned {
    font-size: 1.4em;
    font-weight: bold;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    animation: xp-pulse 0.6s ease-in-out;
}

@keyframes xp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.xp-total {
    font-size: 0.95em;
    opacity: 0.8;
}

.xp-total span {
    font-weight: 600;
}

.xp-bar-track {
    position: relative;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xp-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    border-radius: 16px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.xp-bar-fill-animation {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #86efac);
    border-radius: 16px;
    width: 0%;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.8);
    z-index: 1;
}

.xp-bar-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: xp-shine 2s infinite;
}

@keyframes xp-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Level Up Animation */
.level-up-badge {
    animation: level-up-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes level-up-bounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .xp-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .xp-earned {
        font-size: 1.2em;
    }

    .xp-level-number {
        font-size: 1.5em;
    }

    .xp-bar-track {
        height: 28px;
    }
}
