/* ============================================================
   stash.css — the stash (items needing placement) and the container tabs
   ============================================================ */

/* ─── STASH (NEEDS PLACEMENT) ────────────────────────────── */
#stash-section {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px var(--emboss-lo);
  padding: 6px 8px 8px;
  background: var(--surface);
}

#stash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

#stash-header #stash-delete-all-btn {
  margin-left: auto;
  font-size: 10px;
}

#stash-header #stash-all-btn {
  font-size: 10px;
}

#stash-all-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.stash-badge {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 6px;
  line-height: 1.4;
}

#stash-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stash-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 93%, var(--emboss-hi)), var(--panel));
  box-shadow: inset 0 1px 0 var(--emboss-hi);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 6px;
  cursor: pointer;
  transition: border-color 0.15s;
  max-width: 200px;
  position: relative;
}
.stash-card:hover { border-color: var(--accent); }
.stash-card.placing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.stash-shape {
  display: grid;
  gap: 1px;
  flex-shrink: 0;
}

.stash-cell {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: transparent;
}
.stash-cell.filled { opacity: 0.85; }

.stash-name {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.stash-remove {
  opacity: 0;
  transition: opacity 0.1s;
  flex-shrink: 0;
}
.stash-card:hover .stash-remove { opacity: 1; }

#details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ─── CONTAINER TABS ─────────────────────────────────────── */
#container-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  overflow-x: auto;
  padding: 0 8px;
  scrollbar-width: none;
}
#container-tabs::-webkit-scrollbar { display: none; }

.container-tab {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.container-tab:hover:not(.active) { color: var(--text); }
.container-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

