/* ══════════════════════════════════════════════════════════
   Terminal Gear — Equipment screen, slots, stash panel
   ══════════════════════════════════════════════════════════ */

/* ── Gear Page Layout ───────────────────────── */
.gear-page {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    min-height: 380px;
}
.gear-equipped {
    flex: 0 0 auto;
}
.gear-stash {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, auto);
    gap: 10px;
    max-width: 460px;
}

.gear-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    margin: 0 auto;
    border-radius: 4px;
    cursor: default;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
}

.gear-slot--empty {
    background: rgba(237, 228, 204, 0.5);
    border: 2px dashed #c9b99a;
}

.gear-slot--equipped {
    background: #ede4cc;
    border: 2px solid #c4a44a;
    box-shadow: inset 0 0 20px rgba(196, 164, 74, 0.1);
    cursor: pointer;
}

/* Drag hover state */
.gear-slot--drop-target {
    border-color: #8BC34A !important;
    background: rgba(139, 195, 74, 0.12) !important;
    box-shadow: 0 0 12px rgba(139, 195, 74, 0.25);
}
.gear-slot--drop-invalid {
    border-color: #F44336 !important;
    background: rgba(244, 67, 54, 0.08) !important;
}

.gear-slot-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: #c9b99a;
    margin-bottom: 6px;
    user-select: none;
}

.gear-slot--equipped .gear-slot-icon {
    color: #8b6914;
}

.gear-slot-label {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.65rem;
    color: #a89279;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gear-slot--equipped .gear-slot-label {
    color: #6b5a3a;
}

.gear-slot-item {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.6rem;
    color: #6b5a3a;
    white-space: nowrap;
    font-weight: bold;
}

/* ── Stash Panel ────────────────────────────── */
.gear-stash__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(169, 146, 121, 0.25);
}
.gear-stash__title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b5a3a;
}
.gear-stash__count {
    font-size: 0.68rem;
    color: #a89279;
}
.gear-stash__items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gear-stash__loading {
    text-align: center;
    color: #a89279;
    font-size: 0.75rem;
    padding: 20px 0;
}
.gear-stash__empty {
    text-align: center;
    color: #a89279;
    font-size: 0.75rem;
    padding: 30px 10px;
    line-height: 1.5;
}
.gear-stash__hint {
    text-align: center;
    font-size: 0.62rem;
    color: rgba(169, 146, 121, 0.5);
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(169, 146, 121, 0.15);
}

/* ── Stash Item Card ────────────────────────── */
.gear-stash-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(237, 228, 204, 0.5);
    border: 1px solid rgba(169, 146, 121, 0.25);
    border-radius: 4px;
    cursor: grab;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.gear-stash-item:hover {
    border-color: rgba(196, 164, 74, 0.5);
    background: rgba(237, 228, 204, 0.8);
}
.gear-stash-item.is-dragging {
    opacity: 0.4;
}
.gear-stash-item__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}
.gear-stash-item__info {
    flex: 1;
    min-width: 0;
}
.gear-stash-item__name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b5a3a;
    line-height: 1.2;
}
.gear-stash-item__slot {
    font-size: 0.58rem;
    color: #a89279;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.gear-stash-item__rarity {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}
