/* ================================================================
   SHADOWMERE — INVENTORY PANEL (PC + MOBILE RESPONSIVE)
=============================================================== */

#inventory-panel.shadowmere-inventory-panel {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: radial-gradient(circle at top left, #1a0f2f 0, #090512 55%, #05030a 100%);
    border: 2px solid rgba(120, 0, 255, 0.6);
    box-shadow: 0 0 25px rgba(120, 0, 255, 0.7);
    padding: 20px;

    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    color: #e6dfff;
    z-index: 9999;
}

/* HEADER */
.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.inventory-title {
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(180, 120, 255, 0.8);
}

.inventory-close-btn {
    background: transparent;
    border: none;
    color: #d8caff;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}

.inventory-close-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 0, 120, 0.8);
}

/* FILTER BUTTONS */
.inventory-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(120, 0, 255, 0.5);
    background: rgba(40, 20, 60, 0.6);
    color: #d8caff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(120, 0, 255, 0.4);
}

.filter-btn.active {
    background: rgba(120, 0, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 10px rgba(120, 0, 255, 0.9);
}

/* INVENTORY GRID */
.inventory-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-auto-rows: 80px;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;

    border: 1px solid rgba(120, 0, 255, 0.3);
    background: rgba(20, 10, 30, 0.85);
    border-radius: 8px;
}

.inventory-slot {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid rgba(120, 0, 255, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.inventory-slot:hover {
    border-color: rgba(180, 120, 255, 0.9);
    box-shadow: 0 0 12px rgba(180, 120, 255, 0.8);
    transform: scale(1.05);
}

/* FOOTER */
.inventory-footer {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* MODAL */
.inventory-modal {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(5, 0, 10, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.inventory-modal-content {
    width: 400px;
    max-width: 90%;
    background: rgba(20, 10, 40, 0.95);
    border: 2px solid rgba(120, 0, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(120, 0, 255, 0.8);
}

.inventory-modal-title {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(180, 120, 255, 0.8);
}

.inventory-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.equip-hero-btn {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(120, 0, 255, 0.5);
    background: rgba(40, 20, 60, 0.6);
    color: #d8caff;
    cursor: pointer;
    transition: 0.2s;
}

.equip-hero-btn:hover {
    background: rgba(120, 0, 255, 0.7);
    color: #fff;
}

.inventory-modal-footer {
    margin-top: 15px;
    text-align: center;
}

.inventory-cancel-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 120, 0.5);
    background: rgba(60, 10, 30, 0.6);
    color: #ffcce6;
    cursor: pointer;
    transition: 0.2s;
}

.inventory-cancel-btn:hover {
    background: rgba(255, 0, 120, 0.8);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 120, 0.8);
}

/* MOBILE OVERRIDES */
@media (max-width: 900px) {

    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        grid-auto-rows: 70px;
    }

    .inventory-title {
        font-size: 24px;
    }

    .filter-btn {
        flex: 1 1 45%;
        text-align: center;
    }
}
