/* Cosa Cena v2 — list screen styles */

/* ── Header actions ───────────────────────────────────────────────────────── */
.list-hdr-actions {
  margin-left: auto;
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
}

/* List header actions now use shared .hdr-icon-btn and .hdr-text-btn classes (shared.css) */

/* ── Add item row ─────────────────────────────────────────────────────────── */
.list-add-wrap {
  padding: 10px 16px 6px;
}

.list-add-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sand-mid);
  padding: 8px 10px;
}

.list-add-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.list-add-input {
  flex: 1;
  min-width: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--brown);
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
}

.list-add-input::placeholder { color: var(--muted); font-style: italic; }

.list-add-qty {
  width: 44px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--brown);
  border: none;
  border-left: 1px solid var(--sand);
  outline: none;
  background: transparent;
  padding: 0 0 0 7px;
  text-align: center;
}

.list-add-qty::placeholder { color: var(--muted); }

.list-add-done {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  background: var(--terracotta);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 30px;
}

/* ── Recipe chips ─────────────────────────────────────────────────────────── */
.list-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 16px 10px;
}

.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--sand-mid);
  border-radius: 20px;
  padding: 5px 8px 5px 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  color: var(--brown-mid);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.list-chip:active { background: var(--sand); }

.list-chip-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.list-chip-x svg {
  width: 7px;
  height: 7px;
  stroke: var(--brown-light);
}

/* ── Aisle section ────────────────────────────────────────────────────────── */
.list-body { padding-bottom: 8px; }

.list-section { margin-bottom: 2px; }

.list-section-header {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brown);
  padding: 16px 16px 8px;
}

.list-section-body {
  background: var(--white);
  border-radius: 0;
  margin: 0 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(46,31,18,0.05);
}

/* ── Ingredient item ──────────────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--sand);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.1s;
}

.list-section-body .list-item:first-child { border-top: none; }

.list-item:active { background: var(--sand); }

.list-item.checked .list-item-name {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--sand-mid);
}

/* Custom checkbox */
.list-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--sand-mid);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}

.list-check.done {
  background: var(--olive);
  border-color: var(--olive);
}

.list-check svg { display: none; }
.list-check.done svg { display: block; width: 10px; height: 10px; }

/* Item body */
.list-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-item-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--brown);
  line-height: 1.4;
}

.list-item-from {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Loading */
.list-loading {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
}
