/* Item Tooltip System */

item-tip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: #c9aa71;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200,170,110,0.3);
  transition: color 0.15s, text-decoration-color 0.15s;
}
item-tip strong, .article-body item-tip strong { color: inherit !important; }
item-tip:hover {
  color: #e8d5a3;
  text-decoration-color: rgba(200,170,110,0.6);
}
item-tip .item-icon {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(200,170,110,0.2);
  vertical-align: middle;
  flex-shrink: 0;
}

#item-tooltip {
  position: absolute;
  z-index: 9999;
  width: 320px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%) translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
}
#item-tooltip.visible {
  opacity: 1;
  transform: translateY(-100%) translateY(-4px);
  pointer-events: auto;
}

.tt-inner {
  background: #1a1625;
  border: 1px solid rgba(200,170,110,0.3);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
}

.tt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,170,110,0.12);
}

.tt-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(200,170,110,0.25);
  flex-shrink: 0;
}

.tt-name {
  font-size: 15px;
  font-weight: 700;
  color: #c9aa71;
  line-height: 1.2;
}

.tt-gold {
  font-size: 12px;
  color: #f5c842;
  margin-top: 2px;
}

.tt-desc {
  font-size: 12.5px;
  color: #b0a8c0;
  line-height: 1.6;
}

.tt-stats {
  margin-bottom: 2px;
  line-height: 1.5;
}

.tt-val { color: #fff; font-weight: 600; }
.tt-passive { color: #c9aa71; font-weight: 600; }
.tt-active { color: #4ade80; font-weight: 600; }
.tt-unique { color: #c9aa71; font-weight: 600; }
.tt-magic { color: #7eb8f0; }
.tt-phys { color: #f08060; }
.tt-true { color: #f5f5f5; font-weight: 600; }
.tt-heal { color: #4ade80; }
.tt-shield { color: #e0e0e0; }
.tt-speed { color: #f5dd42; }
.tt-onhit { color: #e0c090; font-style: italic; }
.tt-keyword { color: #c9aa71; font-weight: 600; }
.tt-mythic { color: #ff8c00; font-weight: 700; }
.tt-legendary { color: #c9aa71; }

.tt-sep { height: 10px; }

.tt-li {
  padding-left: 10px;
  position: relative;
  margin: 2px 0;
}
.tt-li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: rgba(200,170,110,0.4);
  border-radius: 50%;
}

@media (max-width: 768px) {
  #item-tooltip { width: 280px; }
  .tt-inner { padding: 10px; }
  .tt-desc { font-size: 12px; }
}
