/* ===== INVENTORY SYSTEM STYLES ===== */
/* Centralized inventory CSS for all scenes */
/* Note: Button styles are in ui-buttons.css */

/* Inventory overlay */
#inventory-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#inventory-overlay.active {
    display: flex;
    opacity: 1;
}

.inventory-content {
    display: flex;
    gap: 40px;
    width: 800px;
    height: 500px;
    background-color: #1a1a1a;
    border: 2px solid #6bffb8;
}

.inventory-list-column {
    flex: 1;
    background-color: #0d0d0d;
    padding: 20px;
    overflow-y: auto;
    border-right: 2px solid #6bffb8;
}

.inventory-list-column h2 {
    color: #6bffb8;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'NotJam Old Style', serif;
    font-size: 24px;
}

.inventory-item {
    background-color: #1a1a1a;
    border: 1px solid #6bffb8;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Ark Pixel 10px', monospace;
    color: #6bffb8;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

.inventory-item:hover {
    background-color: #2a2a2a;
}

.inventory-item.selected {
    background-color: #6bffb8;
    color: #000;
}

.inventory-empty {
    color: #666;
    font-family: 'Ark Pixel 10px', monospace;
    font-size: 12px;
    text-align: center;
    margin-top: 40px;
}

.inventory-details-column {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.inventory-details-column h2 {
    color: #6bffb8;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'NotJam Old Style', serif;
    font-size: 24px;
}

.inventory-details-column p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Ark Pixel 10px', monospace;
    color: #ffffff;
    font-size: 14px;
    flex-grow: 1;
}

.inventory-close-button {
    background-color: #6bffb8;
    color: #000;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-family: 'Ark Pixel 10px', monospace;
    text-transform: uppercase;
    font-size: 10px;
    align-self: flex-start;
}

.inventory-close-button:hover {
    background-color: #8bffcc;
}

/* Text size variants for inventory */
body.text-small .inventory-list-column h2 { font-size: 22px; }
body.text-small .inventory-item { font-size: 10px; }
body.text-small .inventory-details-column h2 { font-size: 22px; }
body.text-small .inventory-details-column p { font-size: 12px; }
body.text-small .inventory-close-button { font-size: 9px; }

body.text-medium .inventory-list-column h2 { font-size: 24px; }
body.text-medium .inventory-item { font-size: 12px; }
body.text-medium .inventory-details-column h2 { font-size: 24px; }
body.text-medium .inventory-details-column p { font-size: 14px; }
body.text-medium .inventory-close-button { font-size: 10px; }

body.text-large .inventory-list-column h2 { font-size: 26px; }
body.text-large .inventory-item { font-size: 14px; }
body.text-large .inventory-details-column h2 { font-size: 26px; }
body.text-large .inventory-details-column p { font-size: 16px; }
body.text-large .inventory-close-button { font-size: 12px; }

body.text-xlarge .inventory-list-column h2 { font-size: 28px; }
body.text-xlarge .inventory-item { font-size: 16px; }
body.text-xlarge .inventory-details-column h2 { font-size: 28px; }
body.text-xlarge .inventory-details-column p { font-size: 18px; }
body.text-xlarge .inventory-close-button { font-size: 14px; }
