/* NPC detail page */

.entity-header__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.entity-header__title-row .entity-header__title {
  margin: 0;
}

.npc-spawn-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(51, 255, 167, 0.22);
  border-radius: 10px;
  background: rgba(51, 255, 167, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.npc-spawn-pin--inline {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.npc-spawn-pin:hover,
.npc-spawn-pin:focus-visible {
  background: rgba(51, 255, 167, 0.14);
  border-color: rgba(51, 255, 167, 0.35);
  outline: none;
}

.npc-spawn-pin img {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.npc-locations .entity-link {
  align-items: flex-start;
}

.npc-location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.npc-location-chip__link {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(51, 255, 167, 0.05), rgba(0, 0, 0, 0.1));
  color: var(--link);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.npc-location-chip__link--static {
  color: var(--text);
}

.npc-location-chip__link:hover,
.npc-location-chip__link:focus-visible {
  border-color: rgba(51, 255, 167, 0.32);
  background: linear-gradient(180deg, rgba(51, 255, 167, 0.1), rgba(0, 0, 0, 0.08));
  outline: none;
  transform: translateY(-1px);
}

.npc-location-chip__pin {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  background: center / contain no-repeat url("https://mw2.wiki/assets/a1a4f193/assets/pin-48.svg");
  opacity: 0.9;
}

.npc-location-chip__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.npc-location-chip__main {
  font-weight: 700;
  line-height: 1.25;
}

.npc-location-chip__sub {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.npc-stats .entity-table th {
  width: 32%;
}

.npc-loot-tabs {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.npc-loot-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.npc-loot-tab:hover,
.npc-loot-tab:focus-visible {
  border-color: rgba(51, 255, 167, 0.28);
  color: var(--text);
  outline: none;
}

.npc-loot-tab.is-active {
  border-color: rgba(51, 255, 167, 0.35);
  background: linear-gradient(180deg, rgba(51, 255, 167, 0.12), rgba(51, 255, 167, 0.04));
  color: var(--accent);
}

.npc-loot-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: inherit;
}

.npc-loot-tab.is-active .npc-loot-tab__count {
  background: rgba(51, 255, 167, 0.16);
}

.npc-loot-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.npc-loot--single h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.npc-loot-panel {
  display: none;
}

.npc-loot-panel.is-active {
  display: block;
}

.npc-loot-empty {
  margin: 0;
  padding: 1rem 0.95rem;
}

.npc-drop-groups {
  display: grid;
  gap: 1rem;
}

.npc-drop-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.npc-drop-group__title {
  margin: 0;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(51, 255, 167, 0.06);
  border-bottom: 1px solid var(--border);
}

.npc-drop-group .entity-table {
  margin: 0;
}

.npc-drop-group .entity-table thead th {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.npc-drop-group .entity-table tbody tr:last-child td {
  border-bottom: 0;
}

.npc-drop-group .entity-table td,
.npc-drop-group .entity-table th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
