/**
 * Crafting Module Styles
 */

/* Worker Slots Container */
.workshop-worker-slots {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

/* Worker Slot Card - keeps alchemy settings layout */
.worker-slot-card__settings {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* Spirit Stone Income */
.workshop-income {
    color: var(--ui-gold);
    font-weight: bold;
}

/* Worker Selection Modal */
.worker-selection-modal {
    padding: 15px;
}

.worker-selection-modal__list {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ============================================
   Pavilion Inventory (Stored Pills / Equipment)
   ============================================ */

.pavilion-inventory {
    margin: 10px 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.05);
    overflow: hidden;
}

.pavilion-inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.pavilion-inventory-title {
    font-size: 0.8em;
    font-weight: bold;
    color: #a78bfa;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ─── Mobile Crafting ─── */
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
    .worker-slot-card__settings {
        flex-direction: column;
        gap: 3px;
    }

    /* One worker per row, uniform full-width cards */
    .workshop-worker-slots {
        gap: 5px !important;
        flex-direction: column;
    }

    .workshop-worker-slots .worker-slot-card {
        width: 100%;
        min-width: 0;
        max-width: none;
        font-size: 0.85em;
        box-sizing: border-box;
    }
}
