/* =========================================================
   MIDDLE BAR
   ========================================================= */

#middle-bar {
    display: flex;
    flex-direction: row;

    align-items: stretch;
    justify-content: center;

    gap: 32px;

    width: 100%;

    flex: 1;
    min-height: 0;

    overflow: hidden;

    background-color: var(--glass-dark-heavy);

    border-top: 2px solid var(--glass-border);
    border-bottom: 2px solid var(--glass-border);
}


/* =========================================================
   MIDDLE LEFT / RIGHT
   ========================================================= */

#middle-left {
    flex: 1 1 0;

    width: 0;
    min-width: 0;
    min-height: 0;
    padding-left: 100px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


#middle-right {
    flex: 1 1 0;

    width: 0;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: flex;

    align-items: stretch;
    justify-content: stretch;

    overflow: hidden;
}

/* =========================================================
   INVENTORY
   ========================================================= */

#inventory-container {
    display: grid;

    /*
     * 5 Spalten
     * 4 Reihen
     */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));

    gap: 10px;

    width: 100%;

    flex: 1 1 auto;

    min-width: 0;
    min-height: 0;

    padding: 15px;

    overflow: hidden;
}


/* ---------------------------------------------------------
   Individual Item
   --------------------------------------------------------- */

.item {
    min-width: 0;
    min-height: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-color: rgba(0, 0, 0, 0.5);

    border: 2px solid var(--glass-border);

    cursor: pointer;

    transition: transform 0.2s ease-in-out;
}

.item:hover {
    transform: scale(1.03);
}

.item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   ITEM DETAIL
   ========================================================= */

#item-detail {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    /*
     * Unsichtbar, solange kein Item ausgewählt wurde.
     */
    display: none;
}


/* ---------------------------------------------------------
   Main Item Image
   --------------------------------------------------------- */

#item-detail > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ---------------------------------------------------------
   Item Information Overlay
   --------------------------------------------------------- */

.item-info {
    position: absolute;

    left: 0;
    right: -150px;
    bottom: 50px;

    height: 33%;

    padding: 30px;

    background: linear-gradient(
        to right,
        var(--glass-dark-heavy),
        transparent
    );

    border-top: 2px solid var(--glass-border);
    border-bottom: 2px solid var(--glass-border);
    border-left: 2px solid var(--glass-border);

    z-index: 2;

    text-align: left;
}


/* ---------------------------------------------------------
   Item Title
   --------------------------------------------------------- */

.item-info h2 {
    margin: 0 0 5px 0;

    font-size: 32px;
}


/* ---------------------------------------------------------
   Item Date
   --------------------------------------------------------- */

.item-date {
    margin: 0 0 20px 0;

    opacity: 0.6;
}


/* ---------------------------------------------------------
   Item Description
   --------------------------------------------------------- */

.item-description {
    margin: 0;
    padding-right: 150px;
}