/* ================================================================
   TANKNEXUS — Tanks Block styles
   ================================================================ */

/* ── Общий контейнер ─────────────────────────────────────────── */
.lot-tanks-block {
  margin: 0px 0px 57px;
  max-width: var(--max-width, 1200px);
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 20px;
}

/* ── Обёртка: счётчики танков + ресурсы (визуально единый блок) ─ */
.tb-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Блок (техника / ресурсы) ────────────────────────────────── */
.tanks-block {
  display: flex;
  flex-direction: column;
}

/* ── Общий заголовок блока ───────────────────────────────────── */
.tb-block-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b9b9b9;
  padding: 6px 14px 5px;
  /*background: linear-gradient(90deg, #242831, transparent 70%);*/
  border-radius: 10px 10px 0 0;
}

/* ── Секция (Прем 8-9 / Т10 / Прем 5-7) ─────────────────────── */
.tanks-section {
  display: flex;
  flex-direction: column;
}

/* Разделитель между секциями внутри премиум-блока */
/*.tanks-block--premium .tanks-section + .tanks-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0px solid rgba(255,255,255,0.06);
}
*/
.tanks-section-body {
  /*background: linear-gradient(90deg, #1a1c21, transparent 70%);*/
  border-radius: 0 0 14px 14px;
  padding: 0px 4px;
  overflow: hidden;
  transition: padding 0.25s ease;
}

/* Промежуточные секции — без нижних скруглений */
.tanks-section:not(:last-child) .tanks-section-body {
  border-radius: 0;
}

/* ── Ряд иконок ──────────────────────────────────────────────── */
.tanks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 9px;
}

/* ── Отдельный танк ──────────────────────────────────────────── */
.tank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  min-width: 94px;
  max-width: 94px;
  text-align: center;
}

.tank-item:hover {
  background: var(--hover-bg, rgba(255,255,255,0.05));
}

.tank-item--active {
  border-color: var(--accent, #f0a500);
  background: var(--hover-bg, rgba(255,255,255,0.05));
}

/* ── Иконка танка ────────────────────────────────────────────── */
.tank-icon-wrap {
  width: 112px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tank-icon {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.3) contrast(1.03);
  pointer-events: none;
}

.tank-icon--missing {
  width: 44px;
  height: 36px;
  border-radius: 6px;
  background: var(--border, rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted, #888);
}

/* ── Строка с именем и уровнем ───────────────────────────────── */
.tank-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  pointer-events: none;
}

/* ── Название танка ──────────────────────────────────────────── */
.tank-name {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary, #aaa);
  word-break: keep-all;
  hyphens: auto;
}

.tank-item--active .tank-name {
  color: var(--text, #eee);
}

/* ── Бейдж уровня (как в фильтре) ───────────────────────────── */
.tb-tier-badge {
  font-size: 12px;
  font-weight: 600;
  color: #9b9b9b;
  border-radius: 7px;
  padding: 2px 5px;
  background: #ffffff14;
  flex-shrink: 0;
  line-height: 1.2;
  position: absolute;
  margin: 0px 0px 167px -62px;
}

.tb-tier-badge[data-tier="8"],
.tb-tier-badge[data-tier="9"] {
  background: #d6ff00;
  color: #000000;
}

/* ── Панель описания (раскрывается по клику) ─────────────────── */
.tank-desc-panel {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-subtle, rgba(255,255,255,0.04));
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary, #bbb);
  border-left: 3px solid var(--accent, #f0a500);
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Блок ресурсов ───────────────────────────────────────────── */
.tb-resources-body {
  /*background: linear-gradient(90deg, #1a1c21, transparent 70%);*/
  border-radius: 0 0 14px 14px;
  padding: 0px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tb-resources-block .tb-resources-body {
  padding: 0px 9px;
}

.tb-resource-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 10px;
  border-radius: 8px;
  /*background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);*/
}

.tb-resource-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.tb-resource-icon--bonds {
  width: 80px;
  height: 80px;
  margin: -12px;
  filter: drop-shadow(21px 2px 20px #8a01f4);
}

.tb-resource-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tb-resource-name {
  font-size: 10px;
  color: var(--text-muted, #888);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.tb-resource-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #eee);
  z-index: 1;
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .lot-tanks-block {
    padding: 10px 0px 0px 0px;
  }
  .tanks-section-body,
  .tb-resources-body {
    padding: 10px 10px;
  }
  .tanks-row {
    gap: 8px 4px;
  }
  .tank-item {
    min-width: 85px;
    max-width: 88px;
    padding: 0px;
    gap: 10px;
  }
  .tank-icon-wrap {
    width: 40px;
    height: 50px;
  }
  .tank-icon {
    max-width: 100px;
    max-height: 80px;
  }
  .tb-resource-item {
    min-width: 60px;
    padding: 6px 8px;
  }
  .tb-resource-icon {
    width: 60px;
    height: 60px;
  }
  .tb-resource-icon--bonds {
    width: 80px;
    height: 80px;
    margin: -13px
  }
  /* Бейдж уровня на мобилке */
  .tb-tier-badge {
    margin: 0px 0px 130px -54px;
  }
  .tb-resources-block .tb-resources-body {
    padding: 0px 0px 0px 18px;
  }
}
