/* Player Progress Styles */

/* XP and Level Display */
#xp-level-display {
    position: fixed;
    top: 95px; /* Position below the update names button on web */
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff00cc;
    border-radius: 10px;
    padding: 10px;
    color: white;
    z-index: 1000;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
    transition: all 0.3s;
}

#xp-level-display.highlight {
    border-color: #ffdd00;
    box-shadow: 0 0 15px rgba(255, 221, 0, 0.7);
}

#player-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.level-label {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffdd00;
}

.level-value {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(45deg, #ffdd00, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255, 221, 0, 0.5);
}

#xp-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}

#xp-bar {
    height: 100%;
    background: linear-gradient(90deg, #3333ff, #ff00cc);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 5px;
}

#xp-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    line-height: 10px;
    color: white;
    text-shadow: 0 0 2px black;
    pointer-events: none;
}

/* XP Gain Popup */
.xp-gain-popup {
    position: fixed;
    transform: translateY(0);
    opacity: 1;
    color: #ffdd00;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 2000;
    text-align: center;
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Different colors for different XP sources */
.xp-source-spin {
    color: #ff00cc;
}

.xp-source-reality-break, 
.xp-source-dimensional-rift,
.xp-source-hologram-glitch,
.xp-source-shadow-realm {
    color: #ffdd00; /* Legendary */
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.7);
}

.xp-source-matrix,
.xp-source-spiral-trails,
.xp-source-time-warp {
    color: #ff9900; /* Epic */
    font-size: 22px;
}

.xp-source-laser-show,
.xp-source-electric-field,
.xp-source-multiplying-wheel,
.xp-source-black-hole,
.xp-source-gravity-flip {
    color: #3333ff; /* Rare */
}

/* Level Up Popup */
.level-up-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ffdd00;
    border-radius: 15px;
    padding: 20px 40px;
    color: white;
    z-index: 3000;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 221, 0, 0.7);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.level-up-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffdd00;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.7);
}

.level-up-detail {
    font-size: 20px;
    color: white;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #xp-level-display {
        top: 20vh; /* Match achievements button position at 20vh from top */
        right: 15px; /* Keep right-aligned */
        bottom: auto; /* Override bottom positioning */
        min-width: 120px;
        padding: 8px;
    }
    
    .level-label {
        font-size: 12px;
    }
    
    .level-value {
        font-size: 16px;
    }
    
    #xp-bar-container {
        height: 8px;
    }
    
    #xp-text {
        font-size: 8px;
        line-height: 8px;
    }
    
    .xp-gain-popup {
        font-size: 16px;
    }
    
    .level-up-popup {
        padding: 15px 30px;
    }
    
    .level-up-title {
        font-size: 24px;
    }
    
    .level-up-detail {
        font-size: 16px;
    }
} 