/* ═══════════════════════════════════════════════════════════
   Stardew Valley Save Editor  ·  extras.css
   Professions, Equipment, Inventory, Recipes,
   Achievements, Animals, Game Stats tabs
   ═══════════════════════════════════════════════════════════ */

/* ── Characters tab ──────────────────────────────────────────── */
#character-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.char-row {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px 18px;
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease-spring);
}
.char-row:hover {
  border-color: var(--border);
  background: rgba(60,122,80,0.1);
  transform: translateY(-2px);
}
.char-row.active {
  border-color: var(--gold);
  background: rgba(200,160,60,0.08);
  box-shadow: 0 0 14px rgba(200,160,60,0.15);
}
.char-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-canvas {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center top;
  image-rendering: pixelated;
  display: block;
}
.char-row-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.char-row-name { font-size: 9px; color: var(--parchment); }
.char-row.active .char-row-name { color: var(--gold); }
.char-row-badge {
  font-size: 5.5px;
  color: var(--gold);
  background: rgba(200,160,60,0.15);
  border: 1px solid rgba(200,160,60,0.35);
  border-radius: 99px;
  padding: 3px 10px;
  display: inline-block;
}
.char-row-badge.farmhand {
  color: var(--parchment2);
  background: rgba(255,255,255,0.05);
  border-color: var(--border2);
}

/* ── Hair picker (frame + nav buttons) ───────────────────────── */
.hair-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hair-frame {
  position: relative;
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.35);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.hair-frame img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  object-fit: contain;
}
.hair-badge {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 7px;
  color: var(--gold);
  background: rgba(0,0,0,0.65);
  padding: 3px 8px;
  border-radius: 99px;
  pointer-events: none;
}
.hair-nav {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--parchment2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s var(--ease-spring);
}
.hair-nav:hover  { background: rgba(60,122,80,0.35); border-color: var(--border); color: var(--gold); transform: scale(1.1); }
.hair-nav:active { transform: scale(0.95); }

/* ── Professions ─────────────────────────────────────────────── */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.prof-group {
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.prof-group:hover {
  border-color: var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.prof-skill-title {
  font-size: 9px;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.prof-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prof-col  { display: flex; flex-direction: column; gap: 6px; }
.prof-lvl-badge {
  font-size: 6px;
  color: var(--parchment2);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 4px;
}
.prof-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s;
}
.prof-item:hover { background: rgba(255,255,255,0.05); }
.prof-item input { display: none; }
.prof-check {
  width: 14px; height: 14px; min-width: 14px;
  border: 1.5px solid var(--border2);
  border-radius: 3px;
  background: rgba(0,0,0,0.3);
  margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  font-size: 9px;
  font-family: sans-serif;
  color: white;
}
.prof-item:has(input:checked) .prof-check {
  background: linear-gradient(135deg, #2c6838, #4c9a5c);
  border-color: transparent;
}
.prof-item:has(input:checked) .prof-check::after { content: '✓'; }
.prof-text { display: flex; flex-direction: column; gap: 3px; }
.prof-name { font-size: 7px; color: var(--parchment); }
.prof-item:has(input:checked) .prof-name { color: var(--gold); }
.prof-desc { font-size: 5.5px; color: #7a6040; line-height: 1.9; }

/* ── Equipment (hat / rings) in Appearance tab ───────────────── */
.equip-ring-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) { .equip-ring-row { grid-template-columns: 1fr; } }

/* ── Inventory ───────────────────────────────────────────────── */
.inv-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inv-count-badge {
  font-size: 7px;
  color: var(--parchment2);
}
.inv-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
}
.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7px;
  min-width: 520px;
}
.inv-table thead tr {
  background: rgba(0,0,0,0.35);
}
.inv-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--gold);
  font-size: 6px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.inv-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(72,54,10,0.2);
  vertical-align: middle;
}
.inv-row:last-child td { border-bottom: none; }
.inv-row:hover { background: rgba(255,255,255,0.025); }
.inv-slot { color: #4a3418; font-size: 6px; white-space: nowrap; }
.inv-name { color: var(--parchment); max-width: 200px; word-break: break-word; }
.inv-id   { color: #6a5030; font-size: 6px; }
.inv-num {
  width: 64px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 5px 7px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--gold);
  -moz-appearance: textfield;
}
.inv-num::-webkit-inner-spin-button,
.inv-num::-webkit-outer-spin-button { display: none; }
.inv-num:focus { outline: none; border-color: var(--gold); }
.inv-sel {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 5px 7px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--parchment2);
}
.inv-sel option { background: #13100a; }
.inv-na    { color: #3a2c10; }
.inv-empty { text-align: center; color: #5a4020; padding: 32px; font-size: 8px; }

/* ── Recipes ─────────────────────────────────────────────────── */
.recipe-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 600px) { .recipe-sections { grid-template-columns: 1fr; } }
.recipe-card {
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.recipe-card:hover { border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.recipe-card-icon  { font-size: 40px; margin-bottom: 12px; }
.recipe-card-title { font-size: 9px; color: var(--parchment); margin-bottom: 10px; }
.recipe-card-count {
  font-size: 11px;
  color: var(--gold);
  margin: 14px 0;
  text-shadow: 0 0 12px var(--gold-glow);
}
.recipe-card-hint  { font-size: 6px; color: #7a6040; margin-bottom: 16px; line-height: 2; }

/* ── Achievements ────────────────────────────────────────────── */
.ach-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ach-count-badge { font-size: 7px; color: var(--parchment2); }
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.ach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: rgba(0,0,0,0.2);
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}
.ach-item:hover { border-color: var(--border); transform: translateY(-2px); }
.ach-item input { display: none; }
.ach-item.ach-earned {
  background: rgba(60,122,80,0.12);
  border-color: rgba(76,154,92,0.5);
}
.ach-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.ach-name { font-size: 6px; color: var(--parchment2); line-height: 1.8; }
.ach-item.ach-earned .ach-name { color: var(--parchment); }

/* ── Animals ─────────────────────────────────────────────────── */
.animals-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.animals-count-badge { font-size: 7px; color: var(--parchment2); }
.animals-section { margin-bottom: 20px; }
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.animal-card {
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.animal-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.animal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.animal-emoji  { font-size: 28px; flex-shrink: 0; }
.animal-info   { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.animal-name-input {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 5px 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--parchment);
  width: 100%;
  transition: border-color 0.2s;
}
.animal-name-input:focus { outline: none; border-color: var(--gold); }
.animal-type   { font-size: 6px; color: #7a6040; }
.animal-stats  {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.animal-stat   { display: flex; flex-direction: column; gap: 4px; }
.animal-stat label { font-size: 5.5px; color: var(--parchment2); line-height: 1.6; }
.animal-stat input,
.animal-stat select {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 5px 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--gold);
  width: 100%;
  -moz-appearance: textfield;
}
.animal-stat input::-webkit-inner-spin-button,
.animal-stat input::-webkit-outer-spin-button { display: none; }
.animal-stat select option { background: #13100a; }
.animal-stat input:focus,
.animal-stat select:focus { outline: none; border-color: var(--gold); }
.animal-max-btn {
  font-size: 6px !important;
  padding: 8px 12px !important;
  width: 100%;
}

/* ── Game Stats ──────────────────────────────────────────────── */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.gs-tile {
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.25s, transform 0.2s;
}
.gs-tile:hover { border-color: var(--border); transform: translateY(-2px); }
.gs-tile-wide  { grid-column: span 2; }
.gs-icon  { font-size: 24px; }
.gs-val   { font-size: 11px; color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.gs-label { font-size: 5.5px; color: var(--parchment2); line-height: 1.8; text-align: center; }
.gs-monsters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}
.gs-monster {
  font-size: 6px;
  color: #7a6040;
  background: rgba(0,0,0,0.25);
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--border2);
}
