/* ==========================================================================
   TOOLTIP PROGRESJI STATYSTYK [X/8 MAX]
   ========================================================================== */
.stats-tooltip {
  position: absolute;
  display: none;
  z-index: 1001;
  background: rgba(18, 20, 26, 0.97);
  border: 1px solid #2d3748;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 8px 10px;
  border-radius: 0;
  min-width: 205px;
  max-width: 235px;
  pointer-events: none;
  text-rendering: geometricPrecision;
}

.stats-tooltip .st-title {
  font-size: 11px;
  font-weight: 700;
  color: #e0e6ed;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid #2d3748;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.stats-tooltip .st-badge {
  color: var(--ui-text-muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.stats-tooltip .st-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-tooltip .st-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 10px;
  line-height: 1.35;
}

.stats-tooltip .st-label {
  color: var(--ui-text-muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.stats-tooltip .st-value {
  color: #cbd5e1;
  text-align: right;
  white-space: nowrap;
}

.stats-tooltip .st-row.maxed .st-label,
.stats-tooltip .st-row.maxed .st-value {
  color: #d8c27a;
  text-shadow: none;
}

.stats-tooltip .st-row.maxed .st-value b {
  color: #f3e2a3;
  font-weight: 900;
}

.stat-boost-anim {
  animation: statPop 0.6s ease-out;
  color: #d8c27a !important;
}

@keyframes statPop {
  0% { transform: scale(1.4); color: #8fb8d8; }
  100% { transform: scale(1.0); color: inherit; }
}
/* ==========================================================================
   TOOLTIP PRZEDMIOTÓW (wzór HUD z Realm of the Mad God)
   ========================================================================== */
#item-tooltip {
  position: absolute;
  display: none;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid var(--ui-edge);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  padding: 10px;
  font-size: 13px;
  border-radius: 0;
  pointer-events: none;
  z-index: 1000;
  min-width: 200px;
  max-width: 260px;
}

/* Nagłówek: Nazwa przedmiotu z kolorem tieru */
#item-tooltip .tt-header {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2d3748;
  text-shadow: none;
  letter-spacing: 0.5px;
}

/* Opis: Krótki tekst fabularny kursywą */
#item-tooltip .tt-desc {
  color: var(--ui-text-muted);
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* Podtyp pancerza (Szata / Zbroja Skórzana / Zbroja Płytowa) + tier w tooltipie */
#item-tooltip .tt-subtype {
  color: #d7dee8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

#item-tooltip .tt-subtype .tt-tier {
  color: #f0d27a;
}

/* Wymagana klasa pancerza w tooltipie */
#item-tooltip .tt-requirement {
  color: #f2a6a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

/* Kontener listy statystyk */
#item-tooltip .tt-stats {
  background: rgba(21, 24, 31, 0.7);
  border: 1px solid #2d3748;
  border-radius: 0;
  padding: 4px 6px;
  margin-bottom: 6px;
}

/* Pojedyncza linia statystyki */
#item-tooltip .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
  font-size: 13px;
  line-height: 1.4;
}

#item-tooltip .stat-row .stat-label {
  color: #8fa3bf;
  font-weight: 700;
}

#item-tooltip .stat-row .stat-value {
  font-weight: 700;
}

#item-tooltip .stat-row .stat-delta {
  font-size: 12px;
  opacity: 0.9;
}

/* ==========================================================================
   UNTIERED (UT) - Unikatowe przedmioty
   ========================================================================== */
#item-tooltip .tt-header.untiered,
.equip-slot .tt-header.untiered {
  color: #b58ad9 !important;
  text-shadow: none !important;
  border-bottom-color: #b58ad9;
}

#item-tooltip .tt-header .ut-label {
  display: inline-block;
  background: #6a4d8f;
  color: #e0e6ed;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 0;
  margin-left: 6px;
  text-shadow: none;
  letter-spacing: 0.5px;
}

#item-tooltip .tt-ut-passive {
  background: rgba(60, 45, 80, 0.35);
  border: 1px solid #6a4d8f;
  border-radius: 0;
  padding: 4px 6px;
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #c9b3e0;
  line-height: 1.4;
}

#item-tooltip .tt-ut-passive .passive-label {
  color: #d8c27a;
  font-weight: 700;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#item-tooltip .tt-ut-passive .passive-desc {
  color: #b3a0cc;
  font-style: italic;
}


/* Kolory porównania statystyk */
#item-tooltip .stat-better,
#item-tooltip .stat-better .stat-label,
#item-tooltip .stat-better .stat-value {
  color: #6fbe8a;
}

#item-tooltip .stat-worse,
#item-tooltip .stat-worse .stat-label,
#item-tooltip .stat-worse .stat-value {
  color: #d06a6a;
}

#item-tooltip .stat-neutral,
#item-tooltip .stat-neutral .stat-value {
  color: #cccccc;
}

#item-tooltip .stat-neutral .stat-label {
  color: #8fa3bf;
}

/* Stopka: Sterowanie */
#item-tooltip .tt-footer {
  font-size: 11px;
  color: var(--ui-text-muted);
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid #2d3748;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SEKCJA "DLA: / WYMAGA:" (Dozwolone klasy przedmiotu)
   ========================================================================== */
#item-tooltip .item-usable-by {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

#item-tooltip .item-usable-by.allowed {
  color: #4ade80;
}

#item-tooltip .item-usable-by.blocked {
  color: #f87171;
}

/* Przyciemnienie dla pustych slotów */
#item-tooltip .tt-header[style*="#8a95a5"] {
  text-shadow: none;
}

/* ==========================================================================
   ZESTAWY PRZEDMIOTÓW (SET BONUSY) — sekcja w tooltipie przedmiotu
   ========================================================================== */
#item-tooltip .tt-sets {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #2d3748;
  font-size: 11px;
  line-height: 1.55;
}

#item-tooltip .tt-set-title {
  color: #d8c27a;
  font-weight: 700;
  letter-spacing: 0.4px;
}

#item-tooltip .tt-set-bonus {
  color: #8fa3bf;
}

#item-tooltip .tt-set-bonus.active {
  color: #6fbe8a;
  font-weight: 700;
}

#item-tooltip .tt-set-bonus.locked {
  color: #5a6474;
}

