/* styles/equip.css
 * Вкладка «Экипировка»: силуэт, слоты, предметы рядом.
 */

.eq-head { text-align: center; margin-bottom: 4px; }
.eq-name { font-size: 15px; color: #fff; }
.eq-sub { font-size: 11px; color: #888; margin-top: 2px; }

.eq-board { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 6px; }
.eq-row-top { display: flex; justify-content: center; }
.eq-row-top .eq-slot { width: 150px; }
.eq-main { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.eq-side { display: flex; flex-direction: column; gap: 5px; width: 104px; }
.eq-figure { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; }
.eq-body { width: 108px; height: 180px; }

.eq-slot {
  position: relative;
  box-sizing: border-box;
  height: 44px;
  padding: 3px 6px 3px 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #1b1b1b;
  overflow: hidden;
  cursor: pointer;
}
.eq-slot.filled { border-color: var(--slot-color, #5a7a9a); padding-right: 38px; }
.eq-slot.filled::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--slot-color, #5a7a9a);
}
.eq-slot.filled::after {
  content: '';
  position: absolute; right: 4px; top: 50%;
  width: 30px; height: 30px; transform: translateY(-50%);
  background: var(--slot-avatar) center / contain no-repeat;
  opacity: 0.95; pointer-events: none;
}
.eq-slot:hover { background: #232323; }
.eq-slot.drop-target { outline: 2px solid #7fb069; background: #24301d; }
.eq-figure.drop-target { outline: 2px dashed #7fb069; outline-offset: 3px; border-radius: 6px; }
.eq-slot-label {
  display: block; font-size: 8px; line-height: 1.1;
  color: #777; text-transform: uppercase; letter-spacing: 0.4px;
}
.eq-slot-value {
  display: block; margin-top: 2px;
  font-size: 10px; line-height: 1.15; color: #eee;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.eq-slot.empty .eq-slot-value { color: #555; }

.eq-stats {
  display: flex; flex-wrap: wrap; gap: 3px 12px;
  border-top: 1px solid #333; padding-top: 6px;
  font-size: 11px; color: #aaa;
}

.eq-nearby { margin-top: 8px; border-top: 1px solid #333; padding-top: 6px; }
.eq-title {
  font-size: 11px; color: #888; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 5px;
}
.eq-list { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; }
.eq-filters { display: flex; gap: 4px; margin-bottom: 6px; }
.eq-filter {
  background: #1a1a1a; border: 1px solid #3a3a3a; border-radius: 4px;
  color: #999; font-size: 10px; padding: 3px 8px; cursor: pointer;
}
.eq-filter:hover { color: #ddd; border-color: #555; }
.eq-filter.active { background: #2a3a4a; color: #fff; border-color: #5a7a9a; }
.eq-empty { font-size: 11px; color: #666; padding: 6px 0; }
.eq-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 1px 6px;
  align-items: center;
  padding: 5px 6px;
  background: #1d1d1d;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-size: 11px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.eq-item:hover { background: #252525; border-color: #555; }
.eq-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--item-color, #8a8a80);
}
.eq-item-name { color: #eee; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-item-owner { font-size: 9px; color: #888; }
.eq-item-stats { grid-column: 2 / span 2; font-size: 9px; color: #999; }

.eq-ghost {
  position: fixed;
  z-index: 9999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--item-color, #8a8a80);
  background: rgba(25, 25, 30, 0.95);
  color: #fff;
  font-size: 11px;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}
body.eq-dragging { cursor: grabbing; }

@media (max-width: 520px) {
  .eq-side { width: 92px; }
  .eq-body { width: 92px; height: 160px; }
  .eq-slot { height: 40px; }
}
