/* ========================================
   PACK - Item Bag Screen
   ======================================== */

#pack-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

.pack-header {
    background: #303030;
    color: white;
    padding: 10px;
    font-size: 10px;
    text-align: center;
    border-bottom: 3px solid #606060;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pocket-arrow {
    color: #ffd700;
    font-size: 14px;
    padding: 0 15px;
    animation: pulse 1.5s infinite;
}

.pocket-arrow:hover {
    color: white;
    transform: scale(1.2);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.pack-body {
    display: flex;
    flex-grow: 1;
    height: 150px;
}

.pack-graphic {
    width: 40%;
    background: #e0e0e0;
    border-right: 2px solid #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bag-icon {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    background-image: url('https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/items/backpack.png');
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image 0.1s;
}

.pack-list {
    width: 60%;
    background: white;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 210px;
}

.pack-list::-webkit-scrollbar {
    width: 4px;
}

.pack-list::-webkit-scrollbar-thumb {
    background: #888;
}

.pack-item {
    font-size: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 6px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

/* Block hover visuals when dialog is active */
body.dialog-active .pack-item:hover:not(.focused) {
    background: transparent !important;
    border-color: transparent !important;
    cursor: default;
}

body.dialog-active .pocket-arrow:hover {
    transform: none !important;
    color: #ffd700 !important;
    cursor: default;
}

.pack-item.cancel-btn {
    justify-content: center;
    font-weight: bold;
    background: #eee;
    border: 1px solid #ccc;
}

.pack-item.disabled {
    color: #aaa;
    pointer-events: none;
}

.pack-desc-box {
    height: 60px;
    background: #282828;
    color: white;
    border-top: 4px solid #a0a0a0;
    padding: 8px;
    font-size: 8px;
    line-height: 12px;
    margin-top: auto;
}