/* Combat right rail: compact hunt overview on top, inventory filling the rest.
   Loaded after sidebar.css. */

.hunt-sidebar {
  grid-template-rows: auto minmax(0, 1fr);
}

/* ---- Overview card ---- */
.hunt-overview { padding: 12px 13px 10px; }
.hunt-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.hunt-overview-head h2 { color: #e7ddd1; font: 500 20px/1.1 Georgia, serif; margin: 0; }
.hunt-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid #4d3a38;
  border-radius: 20px;
  color: var(--hunt-muted, #b0a48c);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
}
.hunt-state i { width: 7px; height: 7px; border-radius: 50%; background: #7d6462; }
.hunt-state.live { color: #b6d49b; border-color: #4f6a3c; }
.hunt-state.live i { background: #8fd06a; box-shadow: 0 0 7px #8fd06a; }

.hunt-tally {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}
.hunt-tally > div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #423333;
  border-radius: 7px;
  background: #1c1515;
}
.hunt-tally dt { color: var(--hunt-muted, #b0a48c); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.hunt-tally dd {
  margin: 2px 0 0;
  color: #e7dcd0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hunt-tally small { display: block; color: #8f7270; font-size: 10px; font-variant-numeric: tabular-nums; }

.hunt-overview-xp { margin-top: 12px; }
.hunt-overview-xp .hunt-xp-row { margin-bottom: 8px; }
.hunt-overview-xp .hunt-xp-row > span { margin-top: 2px; }

.hunt-overview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.hunt-overview-actions button {
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #4d3a38;
  border-radius: 6px;
  background: #1f1818;
  color: #d1bda6;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.hunt-overview-actions button:hover { border-color: #dbcbb8; color: #e7dccf; }
.hunt-overview-actions .hunt-unspent { border-color: #a7272f; color: #e9dfd3; background: linear-gradient(#4a1418, #2a1012); }
.hunt-overview-actions .hunt-unspent b { color: #efe8df; }

/* ---- Inventory card ---- */
.hunt-bag {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 12px 11px 10px;
}
.hunt-bag > * { flex-shrink: 0; }
.hunt-bag .bag-items { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }

/* Rail wide enough for a usable item grid */
@media (min-width: 961px) {
  .hunt-layout { grid-template-columns: minmax(0, 1fr) clamp(290px, 24vw, 380px); }
  /* The rail now holds the bag, so the footer shortcut is redundant */
  .hunt-footer .hunt-footer-inventory,
  .hunt-header-actions [data-view="inventory"] { display: none; }
}

/* Narrow screens: overview only, full width (inventory lives on the Gear tab) */
@media (max-width: 960px) {
  .hunt-sidebar { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .hunt-bag { display: none; }
}

/* ---- Compact inventory inside the combat rail ---- */
.hunt-bag .bag-heading { min-height: 0; margin-bottom: 8px; align-items: center; }
.hunt-bag .bag-heading h3 { font-family: var(--title); font-size: 15px; letter-spacing: 2px; }
.hunt-bag .inventory-wallet { display: flex; gap: 10px; font-size: 11px; }
.hunt-bag :is(.tabs, .inventory-bags, .bag-tools, .inventory-menu, .inventory-selection) { gap: 4px; margin: 0 0 6px; }
.hunt-bag :is(.tabs, .inventory-bags, .bag-tools, .inventory-menu, .inventory-selection, .inventory-filters) button {
  min-height: 26px;
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.15;
}
.hunt-bag .inventory-bags button small { display: inline; margin-left: 4px; font-size: 10px; opacity: .75; }
.hunt-bag .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.hunt-bag .bag-actions { gap: 6px; margin-top: 8px; }
.hunt-bag .bag-actions button { min-height: 28px; font-size: 11px; }
.hunt-bag .bag-actions [data-action="settings"] { display: none; }
@media (min-width: 1700px) {
  .hunt-bag .item-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
