/* ========================================
   PARTY - Pokémon Party Screen
   ======================================== */

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

.party-header {
    background: #282828;
    color: white;
    padding: 8px;
    font-size: 10px;
    border-bottom: 2px solid #a0a0a0;
}

.party-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4px;
}

.party-slot {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ccc;
    margin-bottom: 4px;
    padding: 2px;
    cursor: pointer;
    height: 40px;
    position: relative;
}

.party-slot.fainted {
    opacity: 0.6;
    background: #ddd;
}

.party-slot.fainted .slot-icon {
    filter: grayscale(100%);
}

.party-slot.active-mon {
    border: 2px solid #d8b030;
    background: #fffbe0;
}

.party-slot.new-catch {
    border: 2px dashed #40a8c0;
    background: #e0f8ff;
}

.slot-icon {
    width: 40px;
    height: 30px;
    image-rendering: pixelated;
    margin-right: 5px;
}

.party-slot:hover .slot-icon,
.party-slot.focused .slot-icon {
    animation: jump 0.3s infinite;
}

.slot-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 8px;
}

.slot-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}

.mini-hp-bg {
    width: 60px;
    height: 4px;
    background: #ccc;
    border: 1px solid #000;
    border-radius: 2px;
}

.mini-hp-fill {
    height: 100%;
    background: var(--hp-green);
    width: 100%;
}

#party-context {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 90px;
    max-height: 180px;
    overflow-y: auto;
    background: white;
    border: 2px solid #202020;
    z-index: 3100;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.ctx-btn {
    padding: 10px;
    font-size: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    background: white;
}

.ctx-btn.warn {
    color: #c83828;
    font-weight: bold;
}