/* =============================================================
   tooltip.css — Unified Tooltip Styles (items + skills)
   Used by: all pages via header.php
   ============================================================= */

.game-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: 260px;
  min-width: 180px;
  padding: 10px 12px;
  background: rgba(10, 14, 28, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 9px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5);
  font-size: 0.75rem;
  color: #e2e8f0;
  pointer-events: none;
  line-height: 1.45;
  transition: opacity 0.1s;
}

/* ── Header row (icon + name/type) ── */
.game-tooltip .tt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.game-tooltip .tt-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #1e293b;
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
}
.game-tooltip .tt-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}
.game-tooltip .tt-type {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 1px;
}

/* ── Divider ── */
.game-tooltip .tt-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.09);
  margin: 6px 0;
}

/* ── Stat rows ── */
.game-tooltip .tt-stat {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 1px 0;
}
.game-tooltip .tt-stat-label { color: #94a3b8; }
.game-tooltip .tt-stat-value { color: #fff; font-weight: 600; }

/* ── Description ── */
.game-tooltip .tt-desc {
  color: #94a3b8;
  font-style: italic;
  margin-top: 5px;
  font-size: 0.68rem;
  line-height: 1.4;
}

/* ── Price row ── */
.game-tooltip .tt-price {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Skill-specific badges ── */
.game-tooltip .tt-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}
.game-tooltip .tt-badge-passive  { background: rgba(99,102,241,0.45);  color: #c4b5fd; }
.game-tooltip .tt-badge-active   { background: rgba(234,88,12,0.45);   color: #fdba74; }

/* ── Skill effect line ── */
.game-tooltip .tt-effect {
  margin-top: 5px;
  font-size: 0.7rem;
  color: #c4b5fd;
}
.game-tooltip .tt-effect-desc {
  color: #cbd5e1;
  font-size: 0.68rem;
  margin-top: 2px;
}

/* ── Loading state ── */
.game-tooltip .tt-loading { color: #64748b; }
