/* My Shelf inventory UI — reuses the site's CSS custom properties. */

/* .wrap (centred, max-width, padded page container) is defined once in site.css. */
.wrap h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--ink);
}

/* Empty shelf (no published lists). */
.shelf-empty {
  margin: 10px 0;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.acct-gate { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.acct-gate input { flex: 0 1 260px; }
.acct-gate button, .shelf-bar button {
  font-family: 'Archivo', sans-serif; font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--royal); color: #fff; transition: opacity .15s;
}
.acct-gate button:hover, .shelf-bar button:hover { opacity: .88; }
#acctSend { background: var(--teal-ink); }
.acct-banner { margin: 0 0 8px; padding: 10px 14px; background: var(--card-bg);
  border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink-soft); font-size: 13.5px; }
.acct-msg { color: var(--teal-ink); font-size: 13px; font-weight: 600; min-height: 1em; }

.shelf-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.shelf-pick { font-size: 13px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center; }
.shelf-pick select { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  padding: 6px 8px; border: 1px solid var(--line-dark); border-radius: 6px; background: #fff; color: var(--ink); }

.shelf-import { margin-top: 6px; }
.shelf-import textarea { width: 100%; box-sizing: border-box; margin: 6px 0;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; border: 1px solid var(--line-dark);
  border-radius: 6px; padding: 8px; }

.shelf-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
@media (max-width: 620px) { .shelf-rows { grid-template-columns: 1fr; } }
.shelf-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid #ece6d8; min-width: 0; }
.shelf-row .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shelf-row:hover { background: #faf8f1; }
/* .shelf-swatch is defined once in site.css (loaded by every page). */
.shelf-row .pname { flex: 1 1 auto; font-size: 14px; color: var(--ink); }
.shelf-row.not-owned .pname { color: #b8b2a3; }       /* lighter cue for un-owned */
.shelf-row .pcode { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--ink-soft); flex: 0 0 auto; }
.shelf-row .ppig { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); opacity: .7; flex: 0 0 auto; white-space: nowrap; }
.shelf-row .ppig:empty { display: none; }
.thumb { border: none; background: transparent; cursor: pointer; font-size: 15px; opacity: .35; padding: 2px 4px; }
.thumb:disabled { cursor: default; }
.thumb.active { opacity: 1; }
.thumb.up.active { color: #2e8b57; }
.thumb.down.active { color: #b03030; }

/* List grid (My Lists home screen) */
.shelf-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
.shelf-add input { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
  border: 1px solid var(--line-dark); border-radius: 6px; padding: 7px 10px; background: #fff; color: var(--ink); }
.shelf-add button { font-family: 'Archivo', sans-serif; font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border: none; border-radius: 8px; cursor: pointer; background: var(--royal); color: #fff; }
.shelf-add button:hover { opacity: .88; }

.shelf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shelf-card { border: 1px solid var(--line-dark); border-radius: 10px; padding: 14px; background: var(--card-bg); }
.shelf-card-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.shelf-card-meta { font-size: 12.5px; color: var(--ink-soft); margin: 4px 0 12px; }
.shelf-card-actions { display: flex; gap: 8px; }
.shelf-card-actions button { font-family: 'Archivo', sans-serif; font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border: 1px solid var(--royal); border-radius: 8px; cursor: pointer; background: transparent; color: var(--royal); }
.shelf-card-actions button:hover { background: var(--royal); color: #fff; }

/* Drill-in header */
.shelf-list-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.shelf-back { display: inline-block; background: transparent; border: none; color: var(--royal); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; margin: 14px 0 8px; }
.shelf-list-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.shelf-list-ratio { font-size: 13px; font-weight: 600; color: var(--royal); margin: -6px 0 10px; }
.shelf-buynext { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--royal); border-radius: 8px; cursor: pointer; background: #fff; color: var(--royal); margin: 0 0 10px; }
.shelf-buynext:hover { background: #f5f1e5; }
.shelf-buynext-panel { background: var(--bench); border: 1px solid var(--line-dark); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.shelf-buynext-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 0 0 8px; }
.shelf-novelty { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--royal); flex: 0 0 auto; }
.shelf-list-name { font-family: 'IBM Plex Mono', monospace; font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line-dark); border-radius: 6px; background: #fff; color: var(--ink); flex: 1 1 200px; }
.shelf-list-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.shelf-save-msg { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.shelf-list-actions button { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border: none; border-radius: 8px; cursor: pointer; background: var(--royal); color: #fff; }
.shelf-danger { background: #b03030 !important; }
.shelf-import label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.shelf-import button { font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 20px; border: none; border-radius: 8px; cursor: pointer; background: var(--royal); color: #fff; }
.shelf-import button:hover { filter: brightness(1.08); }
