/* ================================================================= */
/* 🗃️ SISTEMA DE INVENTÁRIO UNIVERSAL                                */
/* ================================================================= */

/* Gaveta base escondida no topo direito */
#game-inventory-drawer {
    position: fixed;
    /* Valores padrão universais - Podem ser sobrescritos por página */
    top: -110px; 
    right: 20px;
    
    width: 320px;
    height: 160px;
    background: url('../inventory/inventory.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 15000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gatilho de abertura (Hover ou Click ativo via classe) */
#game-inventory-drawer:hover,
#game-inventory-drawer.active {
    top: 0px !important; /* Desce para dentro da tela */
}

/* Slots de Itens dentro da gaveta */
.inventory-slot {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.inventory-slot img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: url("../cursor.png") 16 0, pointer !important;
}

/* Hover nos itens: Aumenta sutilmente */
.inventory-slot img:hover {
    transform: scale(1.22);
    opacity: 1;
}

/* Caixa de descrição rápida que segue o Hover do Item */
.inventory-tooltip {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #e6ded5;
    font-family: "Jacquard 12", serif;
    font-size: 1.1rem;
    padding: 4px 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 16000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.inventory-slot:hover .inventory-tooltip {
    opacity: 1;
}

/* ================================================================= */
/* 📜 OVERLAY DE INSPEÇÃO SEGURO (ITENS EXPANDIDOS)                  */
/* ================================================================= */
#inv-sys-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85) !important; /* Força o fundo escuro correto apenas no clique do item do inventário */
    z-index: 25000;
    display: none;
    justify-content: center;
    align-items: center;
}

.inv-sys-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    text-align: center;
}

.inv-sys-modal img {
    max-width: 80%;
    max-height: 50vh;
    object-fit: contain;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 1)) drop-shadow(0px 5px 25px rgba(0, 0, 0, 0.95)) !important;
}

.inv-sys-text {
    font-family: "Jacquard 12", serif;
    font-size: 1.8rem;
    color: #FAF4ED;
    line-height: 1.4;
    text-shadow: 
        0px 0px 12px rgba(0, 0, 0, 1),
        0px 4px 8px rgba(0, 0, 0, 1),
        2px 2px 2px rgba(0, 0, 0, 1);
}

.inv-sys-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #a62424;
    font-size: 2.5rem;
    cursor: url("../cursor.png") 16 0, pointer !important;
}

