/* Item icons and the item detail card -- shared by the game (hover
   tooltip) and the item editor (live preview). See js/itemcard.js. */

/* Pixel-art item icon (a CSS sprite -- see js/icons.js). */
.item-icon {
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-color: #16210f;
  border-radius: 4px;
  flex-shrink: 0;
}

/* The card: the game's floating tooltip, and the editor's preview. */
#item-tooltip, .item-card {
  width: 210px;
  padding: 8px 10px;
  border: 1px solid #5a7a44;
  border-radius: 8px;
  background: rgba(14, 20, 12, 0.96);
  color: #eaf2e0;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

#item-tooltip {
  position: fixed;
  z-index: 21; /* over the right-click cards, whose rows it describes */
  pointer-events: none;
}

#npc-card {
  position: fixed;
  z-index: 20;
  width: auto;
  min-width: 160px;
}

.npc-verdict {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 1px solid #2c3d22;
  font-size: 15px;
  font-weight: 700;
}

#npc-card[hidden],
#item-tooltip[hidden] {
  display: none;
}

.tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-head .item-icon {
  background-color: #16210f;
}

.tip-name {
  font-size: 14px;
  font-weight: 700;
}

.tip-type {
  font-size: 10px;
  color: #a9c98f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tip-stats {
  margin: 8px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid #2c3d22;
  list-style: none;
}

.tip-stats li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 18px;
}

.tip-stats .tip-value {
  font-weight: 700;
  color: #eaf2e0;
}

.tip-better { color: #7fdc6a; }
.tip-worse { color: #ff7a6a; }

.tip-note {
  margin: 6px 0 0;
  font-size: 10px;
  color: #7f9670;
}


/* A spell effect line: one sentence, not a label/value pair. */
.tip-stats .tip-effect { color: #cdb8ff; }

/* Crafted quality colours (item names, the crafting window's odds). */
.q-crude { color: #9a9a8a; }
.q-standard { color: #eaf2e0; }
.q-fine { color: #7fdc6a; }
.q-superior { color: #7fb8ff; }
.q-masterwork { color: #d9a0ff; }

/* Right-click a player: their gear, one row per worn slot. */
.inspect-list li { justify-content: flex-start; align-items: center; gap: 6px; }
.inspect-slot { width: 52px; flex-shrink: 0; color: #a9c98f; font-size: 11px; }
.inspect-name { font-weight: 700; }
