/**
 * TankHub — Icon System
 * Lucide SVG иконки как inline CSS-маски + helper JS
 * Подключать ПОСЛЕ lucide.min.js
 */

/* ─── Steel currency badge ─── */
.ic-steel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fb923c;
  font-weight: 800;
}
.ic-steel::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #fb923c;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* ─── Gold currency badge ─── */
.ic-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f59e0b;
  font-weight: 800;
}
.ic-gold::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #f59e0b;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}

/* ─── Icon helpers ─── */
.th-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.th-icon svg { display: block; }

/* ─── Steel balance badge (topbar) ─── */
#steelBadge {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 10px;
  padding: 6px 14px;
}
#steelBadge .steel-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Empty state icon (replaces emoji icon) ─── */
.empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.35;
  color: #8b91a0;
}
.empty-state__icon svg {
  width: 48px;
  height: 48px;
}

/* ─── Condition buttons icons ─── */
.cond-btn__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: inherit;
  opacity: 0.8;
}
.cond-btn__icon svg {
  width: 28px;
  height: 28px;
}

/* ─── Tab icons ─── */
.arena-tab .tab-icon,
.sub-tab .tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
