/* UI System Styles for Shadow Realms */

.upgrade-display {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: 'Courier New', monospace;
    z-index: 1000; /* Keep this for upgrade display */
    max-height: 400px;
    overflow-y: auto;
}

.upgrade-display h3 {
    margin: 0 0 10px 0;
    color: #ffaa00;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.ability-list, .upgrade-list {
    margin-bottom: 15px;
}

.ability-item, .upgrade-item {
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 12px;
}

.ability-icon, .upgrade-icon {
    margin-right: 8px;
    font-size: 16px;
}

.ability-name, .upgrade-name {
    flex: 1;
    font-weight: bold;
}

.ability-level {
    color: #00ff00;
    font-size: 10px;
    margin-left: 5px;
}

.upgrade-badge, .upgrade-tag {
    background: #ffaa00;
    color: black;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.upgrade-effect {
    color: #aaa;
    font-size: 10px;
    margin-left: 5px;
}

/* Ability Slots Styling */
.ability-slot {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.ability-slot:hover {
    border-color: #ffaa00;
    transform: scale(1.05);
}

.ability-slot.active {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.ability-slot .ability-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.ability-slot .ability-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 3px;
}

.ability-slot .ability-level {
    font-size: 10px;
    color: #00ff00;
    margin-bottom: 5px;
}

.ability-slot .ability-upgrades {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
}

.ability-slot .upgrade-tag {
    background: #ffaa00;
    color: black;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: bold;
}

/* Stats Display Styling */
.stats-display {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: 'Courier New', monospace;
    z-index: 999; /* Reduced from 1000 */
}

.stats-display h3 {
    margin: 0 0 10px 0;
    color: #ffaa00;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 12px;
}

.stat-label {
    color: #aaa;
}

.stat-value {
    color: #fff;
    font-weight: bold;
}

/* Health Bar Styling */
.health-bar {
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #444;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    z-index: -1;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ff4400);
    transition: width 0.3s ease;
    z-index: -1;
}

/* Experience Bar Styling */
.exp-bar {
    width: 20px;
    height: 200px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #444;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    z-index: -1;
}

.exp-fill {
    width: 100%;
    background: linear-gradient(180deg, #00ff00, #00aa00);
    transition: height 0.3s ease;
    z-index: -1;
}

/* Game Time Display */
.game-time {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    z-index: -1; /* Reduced from 1000 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .upgrade-display {
        width: 250px;
        right: 10px;
        top: 10px;
    }
    
    .stats-display {
        left: 10px;
        top: 10px;
    }
    
    .game-time {
        top: 10px;
        font-size: 14px;
    }
}

/* Animation Effects */
@keyframes abilityPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ability-slot.pulsing {
    animation: abilityPulse 0.5s ease-in-out;
}

@keyframes upgradeGlow {
    0% { box-shadow: 0 0 5px #ffaa00; }
    50% { box-shadow: 0 0 20px #ffaa00; }
    100% { box-shadow: 0 0 5px #ffaa00; }
}

.upgrade-badge.glow {
    animation: upgradeGlow 1s ease-in-out;
} 