/* KO-style Tooltip (shared) - birebir */
.ko-tooltip {
  position: fixed;
  z-index: 10000;
  display: none;
  background: linear-gradient(180deg, rgba(10,10,10,0.82), rgba(18,18,18,0.98));
  border: none; /* oyun içi görselde dış çerçeve yok */
  box-shadow: 0 10px 24px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.05);
  color: #ffffff; /* temel metin: tam beyaz */
  padding: 10px 12px;
  border-radius: 7px;
  min-width: 200px;
  max-width: 300px;
  pointer-events: none;
  font-size: 12px;
  font-family: var(--ui-font);
  line-height: 1.3;
  will-change: transform;
}
.ko-tooltip .item-name {
  color: #e7b244; /* altın başlık */
  font-weight: 400;
  font-size: 15px;
  margin: 0;
}
.ko-tooltip .tt-header { 
  display:grid; 
  grid-template-columns: auto 1fr; /* ikon | isim (ve altı) */
  align-items:center; 
  column-gap:10px; 
  row-gap:2px; 
  margin-bottom:6px; 
}
.ko-tooltip .tt-icon { width:35px; height:35px; object-fit:contain; border-radius:4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.ko-tooltip .tt-namewrap { display:flex; flex-direction:column; }
.ko-tooltip .item-type { 
  color: #f6edc0; 
  font-size: 12px; 
  margin: 4px 0 0 0; 
  text-align: right; 
}
.ko-tooltip .tt-kind{
  color:#ffffff; /* beyaz: üstteki item-type ile karışmasın */
  font-size:12px;
  margin:2px 0 6px 0;
  text-align:right;
  padding-bottom:4px;
  border-bottom:1px solid rgba(213,186,133,0.6);
}
.ko-tooltip .item-stats { margin-top: 4px; }
.ko-tooltip .tt-line { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:2px 0; color:#ffffff; }
.ko-tooltip .tt-label { color: #f0f0f0; opacity: 1; }
.ko-tooltip .tt-value { color: #ffffff; font-weight: 400; text-align: right; min-width: 64px; }
.ko-tooltip .tt-sep { border-top: 1px solid rgba(213,186,133,0.6); margin: 8px 0; }
/* Durability bar */
.ko-tooltip .tt-dur { margin: 4px 0 6px 0; }
.ko-tooltip .tt-dur-text { font-size: 11px; color:#f2e4b5; margin-bottom: 3px; }
.ko-tooltip .tt-dur-rail { width:100%; height:6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow:hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.35); }
.ko-tooltip .tt-dur-fill { height:100%; background: linear-gradient(90deg, #ffb74d, #ffa000); }
/* Emphasis colors */
.ko-tooltip .tt-elemental .tt-label,
.ko-tooltip .tt-elemental .tt-value,
.ko-tooltip .tt-bonus .tt-label,
.ko-tooltip .tt-bonus .tt-value { color: #49e66a; }
/* Rarity header color helpers */
.item-tooltip.rarity-blue .item-name { color:#6ab7ff; }
.item-tooltip.rarity-purple .item-name { color:#c27bff; }
.item-tooltip.rarity-pink .item-name { color:#ff78b2; }
.item-tooltip.rarity-unique .item-name { color:#dfc68c; }
