/* General Game UI Styles */

/* Menu Button */
.game-menu-button {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #444;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 100;
    pointer-events: all;
    transition: background 0.2s;
}

.game-menu-button:hover {
    background: rgba(40, 40, 40, 0.9);
}

/* Menu System */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    backdrop-filter: blur(4px);
}

.menu-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    min-width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: menu-fade-in 0.2s ease-out;
}

@keyframes menu-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.menu-title {
    text-align: center;
    margin-bottom: 24px;
    font-weight: 500;
    color: #e0e0e0;
}

.menu-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item-list li {
    margin-bottom: 8px;
}
.menu-item-list li:last-child {
    margin-bottom: 0;
}

.menu-button {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.menu-button:hover {
    background: #333;
    border-color: #666;
    color: #fff;
}

/* Player Stats (Health/Mana) */
.player-stats-container {
    position: fixed;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 250px;
    pointer-events: all;
}

.stat-bar {
    width: 100%;
    height: 24px;
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.stat-text {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
}

.stat-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 0.3s ease-in-out;
    z-index: 1;
}

.health-bar .stat-fill {
    background: linear-gradient(to right, #c02020, #a01010);
}

.resource-bar .stat-fill {
    background: linear-gradient(to right, #2060c0, #1040a0);
}

/* Hotbar */
.hotbar-container {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #444;
    padding: 8px;
    border-radius: 8px;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hotbar-slot {
    width: 50px;
    height: 50px;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.hotbar-item {
    width: 44px;
    height: 44px;
    background: #555;
    border-radius: 4px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #777;
}

.hotbar-item:active {
    cursor: grabbing;
}