/* =========================================================
   LAFFI Ship Database — Equipment (6-slot) styles
   ========================================================= */

/* ---- slot bar + the six rectangle boxes ---- */
.eq-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.eq-bar.cmp { gap: 6px; margin-bottom: 16px; }

.eq-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px 8px;
  border: 1px solid var(--border-strong, #30363d);
  border-radius: 10px;
  background: var(--bg-raise, #161b22);
  cursor: pointer;
  transition: border-color .15s var(--ease, ease), background .15s var(--ease, ease), transform .15s var(--ease, ease);
  text-align: center;
  min-width: 0;
}
.eq-box:hover { border-color: var(--text-dim); }
.eq-box.filled { border-color: var(--border-strong); }

/* 1:1 icon tile — gets filled with a real equipment icon later. Empty '' = '+'. */
.eq-ic {
  width: 60px;
  height: 60px;               /* 1:1, large enough to read an icon clearly */
  flex: 0 0 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #8b949e;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed #30363d; /* shows there's a removable icon slot */
  overflow: hidden;
}
.eq-box.empty .eq-ic { color: #6e7681; }   /* grey '+' */
.eq-box.filled .eq-ic { font-size: 18px; color: #c9d1d9; border-style: solid; }

.eq-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.eq-tag {
  font-size: 9.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-muted, #8b949e);
  min-height: 0;
}
.eq-nm {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text, #f0f6fc);
  line-height: 1.2;
  word-break: break-word;
}

.eq-x {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
}
.eq-x:hover { color: #f85149; }

/* ---- dropdown ---- */
.eq-dd-wrap {
  position: fixed;
  left: 24px;
  top: 60px;
  z-index: 9000;
  max-height: 70vh;
  overflow: auto;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  padding: 6px;
  min-width: 260px;
}
.eq-dd-cap {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted, #8b949e);
  padding: 6px 10px 4px;
}

.eq-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text, #f0f6fc);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}
.eq-opt:hover { background: var(--bg-raise, #161b22); }

/* each option has a 1:1 icon slot on the LEFT (future image), text on the right */
.eq-opt-ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;               /* 1:1 preview reserved for the equipment image */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #8b949e;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed #30363d;
}
.eq-opt-txt { font-size: 13px; line-height: 1.25; }
.eq-opt.none .eq-opt-ic { border-style: dashed; }

/* ---- changed / not available values ---- */
.val.na, .cmp-val .na { color: var(--text-muted, #8b949e); font-style: italic; }
/* unchanged = neutral/white; buff = blue; debuff = red (base stays white) */
.stat-pair .val, .cmp-val .val { color: #f0f6fc; }
.val.buff, .val.good, .val.up { color: #58a6ff; font-weight: 600; }
.val.debuff, .val.down { color: #f85149; font-weight: 600; }
em.eq-base {
  color: #f0f6fc;                 /* base value shown in white */
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  opacity: .9;
  margin-left: 1px;
}
.eq-from { font-size: 10.5px; color: var(--text-muted, #8b949e); }
.eq-work { font-size: 11px; color: var(--text-muted, #8b949e); }

.eq-title { margin-top: 4px; }
.eq-meta { font-size: 12px; color: var(--text-dim, #c9d1d9); }
.eq-area { clear: both; }

/* toast (reuse the generic grey-dark toast that ships-tier also used) */
.eq-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 9500;
  transform: translateX(-50%) translateY(10px);
  max-width: min(90vw, 560px);
  background: #1e2124; color: #eceeef; font-size: 13px; line-height: 1.45;
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid #3a3f44;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.eq-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* effective paint inside sheets uses standard stat-pair/cmp rows already styled
   by ships-tier10.css; we only need the slot chrome above. */
.eq-hint { font-size: 11px; color: var(--text-muted, #8b949e); margin: 2px 0 6px; }

/* ---- compare: two labelled equipment bars ---- */
.eq-bar-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text, #f0f6fc);
  margin: 4px 0 6px;
}
.eq-cmp-ship { margin-bottom: 14px; }
.eq-cmp-ship .eq-bar { grid-template-columns: repeat(6, 1fr); }
.eq-area.cmp { display: flex; flex-direction: column; }

/* ---- disabled duplicate-family option ---- */
.eq-opt.taken { opacity: .4; cursor: not-allowed; }
