/**
 * Crafting Module Styles
 */

/* Worker Slots Container */
.workshop-worker-slots {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

/* Worker Slot Card - Base */
.worker-slot-card {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 8px;
    border: 2px solid #444;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Worker Slot Card - Filled (not clickable) */
.worker-slot-card.filled {
    cursor: default;
}

/* Worker Slot Card - Empty */
.worker-slot-card.empty {
    border-style: dashed;
    color: #666;
    cursor: pointer;
}

.worker-slot-card.empty:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
}

.worker-slot-card__empty-icon {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.worker-slot-card__empty-text {
    font-size: 0.8em;
}

/* Worker Slot Card - Filled */
.worker-slot-card__name {
    font-weight: bold;
    font-size: 0.85em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.worker-slot-card__stats {
    font-size: 0.75em;
    color: #aaa;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

/* Worker Slot Card - Action Buttons */
.worker-slot-card__actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.worker-slot-card__btn {
    padding: 3px 8px;
    font-size: 0.7em;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.3);
    color: #aaa;
}

.worker-slot-card__btn:hover {
    color: #fff;
}

.worker-slot-card__btn--remove {
    border-color: #e74c3c;
}

.worker-slot-card__btn--remove:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
}

.worker-slot-card__btn--change {
    border-color: #4ecdc4;
}

.worker-slot-card__btn--change:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

/* Worker Selection Modal */
.worker-selection-modal {
    padding: 15px;
}

.worker-selection-modal__filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.worker-selection-modal__search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.2s;
}

.worker-selection-modal__search:focus {
    border-color: #4ecdc4;
}

.worker-selection-modal__search::placeholder {
    color: #666;
}

.worker-selection-modal__sort {
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.worker-selection-modal__sort:focus {
    border-color: #4ecdc4;
}

.worker-selection-modal__sort option {
    background: #1a1a2e;
    color: #fff;
}

.worker-selection-modal__list {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.worker-selection-modal__no-results {
    grid-column: span 3;
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 0.95em;
}

.worker-selection-modal__empty {
    padding: 30px;
    text-align: center;
    color: #888;
    grid-column: span 3;
}

.worker-selection-modal__empty-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.worker-selection-modal__empty-desc {
    font-size: 0.9em;
}

/* Worker Selection Card */
.worker-selection-card {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    text-align: center;
}

.worker-selection-card:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.worker-selection-card__name {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.worker-selection-card__current {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 6px;
}

.worker-selection-card__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.worker-selection-card__detail {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.worker-selection-card__label {
    color: #666;
}

.worker-selection-card__value {
    color: #fff;
}

.worker-selection-card__value--realm {
    color: #4ecdc4;
}

.worker-selection-card__btn {
    padding: 6px 12px;
    border: 1px solid #4ecdc4;
    border-radius: 4px;
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85em;
    margin-top: auto;
}

.worker-selection-card__btn:hover {
    background: rgba(78, 205, 196, 0.3);
    color: #fff;
}

/* Modal Footer */
.worker-selection-modal__footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
}
