/* ═══════════════════════════════════════════════════════════
   Stardew Valley Save Editor  ·  villagers.css
   Villagers tab: controls, NPC grid, portraits, hearts
   ═══════════════════════════════════════════════════════════ */

/* ── Villager controls ───────────────────────────────────────── */
.villager-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.v-filter-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--border2);
  color: var(--parchment2);
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.25s var(--ease);
}
.v-filter-btn:hover {
  background: rgba(60,122,80,0.25);
  color: var(--parchment);
  border-color: var(--border);
}
.v-filter-btn.active {
  background: linear-gradient(135deg, #2c6838, #4c9a5c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(60,122,80,0.45);
}
.v-search {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 9px 14px;
  background: rgba(0,0,0,0.3);
  border: 1.5px solid var(--border2);
  border-radius: 99px;
  color: var(--parchment);
  width: 190px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.v-search::placeholder { color: #60482a; }
.v-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* ── NPC grid & cards ────────────────────────────────────────── */
.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 10px;
}
.npc-card {
  background: var(--glass2);
  backdrop-filter: var(--blur);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition:
    transform    0.28s var(--ease),
    border-color 0.28s,
    box-shadow   0.28s;
}
.npc-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}
.npc-card.hidden { display: none; }
.npc-card[data-group="romance"] { border-left: 3px solid rgba(200, 72, 110, 0.65); }
.npc-card[data-group="special"]  { border-left: 3px solid rgba(72, 110, 200, 0.65); }

/* ── NPC header ──────────────────────────────────────────────── */
.npc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.npc-portrait {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.4);
  object-fit: cover;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.npc-card:hover .npc-portrait {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.npc-card[data-group="romance"] .npc-portrait { border-color: rgba(160, 60, 90, 0.7); }
.npc-card[data-group="special"]  .npc-portrait { border-color: rgba(60, 90, 160, 0.7); }
.npc-info { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.npc-name { font-size: 8px; color: var(--parchment); }
.npc-card[data-group="romance"] .npc-name { color: #f4b0c8; }
.npc-card[data-group="special"]  .npc-name { color: #a8c8f4; }
.npc-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 4px 6px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--parchment2);
  cursor: pointer;
  max-width: 86px;
  transition: border-color 0.2s;
}
.npc-status:focus { outline: none; border-color: var(--gold); }
.npc-status option { background: #13100a; }

/* ── Hearts ──────────────────────────────────────────────────── */
.heart-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin: 6px 0;
}
.heart-sep {
  font-size: 8px;
  color: rgba(92,66,9,0.5);
  margin: 0 3px;
  user-select: none;
}
.heart-btn {
  font-size: 15px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px;
  line-height: 1;
  color: rgba(72, 54, 18, 0.45);
  transition: color 0.15s, filter 0.15s, transform 0.12s;
}
.heart-btn:hover { transform: scale(1.4); filter: brightness(1.25); }
.heart-btn.filled-normal  { color: #e04040; filter: drop-shadow(0 0 4px rgba(224,64,64,0.55)); }
.heart-btn.filled-romance { color: #e038a8; filter: drop-shadow(0 0 4px rgba(224,56,168,0.6)); }
.heart-btn.pop { animation: heart-pop 0.38s var(--ease-spring); }

/* ── NPC footer ──────────────────────────────────────────────── */
.npc-footer { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.npc-pts-input {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  text-align: right;
  padding: 5px 8px;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid var(--border2);
  border-radius: 5px;
  color: var(--gold);
  width: 90px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.npc-pts-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.npc-pts-label  { font-size: 6px; color: #7a6040; }
.npc-hearts-label { font-size: 7px; color: var(--parchment2); margin-left: auto; }
