/* AgriCorp – HUD and Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; image-rendering: pixelated; }

html, body {
    margin: 0; padding: 0; overflow: hidden;
    background: #000 !important;
    font-family: 'Press Start 2P', cursive;
    color: #fff; user-select: none;
    width: 100%; height: 100%;
}

canvas { display: block; width: 100vw; height: 100vh; background: #000 !important; }

/* HUD: Glassmorphism Top Bar */
#hud-top {
    position: fixed; top: 15px; left: 50%; transform: translateX(-50%);
    z-index: 5000; display: flex; align-items: center; gap: 15px;
    background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(8px);
    padding: 12px 25px; border: 2px solid rgba(255,255,255,0.2); 
    width: 65%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#hp-bar-bg { flex: 1; height: 22px; background: rgba(0,0,0,0.4); border: 2px solid #444; position: relative; border-radius: 4px; overflow: hidden; }
#hp-bar { height: 100%; background: linear-gradient(90deg, #ff4d4d, #ff944d) !important; transition: width 0.3s ease; box-shadow: 0 0 10px #ff4d4d; }

/* Stats HUD */
#stats-container div {
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    padding: 8px 15px; border-radius: 6px; border-left: 4px solid #ffd700;
    margin-bottom: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Action Buttons: Pulsing effect */
#action-buttons button {
    font-family: 'Press Start 2P', cursive; padding: 14px 20px; font-size: 9px;
    background: #5d3a1a; color: #fff; border: 3px solid #ffd700; cursor: pointer;
    border-radius: 6px; box-shadow: 4px 4px 0px rgba(0,0,0,0.6);
    transition: all 0.15s ease; position: relative;
    letter-spacing: 1px;
}

#action-buttons button:hover {
    transform: translateY(-2px); background: #7d4d2a; box-shadow: 6px 6px 0px rgba(0,0,0,0.6);
}

#action-buttons button:active {
    transform: translate(2px, 2px); box-shadow: 1px 1px 0px rgba(0,0,0,0.6);
}

/* OVERLAYS */
#inventory-overlay, #shop-overlay, #lots-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 0, 0.96); z-index: 10000; color: #fff; padding: 40px;
    display: flex; flex-direction: column; align-items: center;
}

.hidden { display: none !important; }

/* SHOP CARDS */
.shop-cards { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; max-width: 95%; }

.shop-card {
    background: rgba(40, 25, 10, 0.8); border: 4px solid #b8860b;
    padding: 25px; width: 240px; text-align: center; border-radius: 12px;
    display: flex; flex-direction: column; gap: 15px;
    transition: transform 0.2s;
}

.shop-card:hover { transform: scale(1.03); border-color: #ffd700; }

.shop-card h3 { font-size: 11px; color: #ffd700; min-height: 25px; }

.card-icon {
    width: 64px; height: 64px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5); border: 2px solid #666; border-radius: 8px; font-size: 32px;
}

.buy-btn {
    width: 100%; background: #2d5a1b; border: 3px solid #4a8a2b; color: #fff;
    padding: 10px; font-family: 'Press Start 2P'; font-size: 8px; cursor: pointer;
}
.buy-btn:hover { background: #4a8a2b; }

/* INVENTORY SECTIONS */
.inventory-container {
    display: flex; gap: 30px; background: rgba(30,20,10,0.9);
    border: 5px solid #b8860b; border-radius: 12px; padding: 30px; max-width: 90%;
}

.inv-section { min-width: 200px; }
.inv-section h3 { font-size: 12px; color: #ffd700; margin-bottom: 15px; border-bottom: 2px solid #555; padding-bottom: 8px; }
.inv-item { font-size: 9px; background: rgba(0,0,0,0.4); padding: 12px; border: 1px solid #444; border-radius: 4px; }

/* CUSTOM SCROLLBAR (for Shop) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #8b4513; border: 2px solid #1a1a1a; }
::-webkit-scrollbar-thumb:hover { background: #a0522d; }
