/*
 * Content lists, cards and tags — the Foods catalog (Milestone 2).
 * See docs/views.md.
 */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Eating-profile card — leads the Preferences screen (reuses .hub-card). Tinted
   so it reads as an input surface, set apart from the plain white food cards, and
   spaced off the catalog below so the two zones don't run together. */
.prefs-tastes {
  margin-bottom: var(--space-5);
  background: var(--color-accent-tint);
  box-shadow: none;
  border: 1px solid var(--color-accent);
}

/* Fill the icon tile with the brand accent (white icon) — the one bold moment
   that anchors the card and marks it as the section's primary action. */
.prefs-tastes .hub-tile {
  background: var(--color-accent);
  color: var(--color-surface);
}

/* Pills / tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: var(--weight-label-strong);
  background: var(--color-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-line);
}

.tag--ref {
  background: var(--color-surface);
}

.tag--meal {
  background: var(--color-accent-tint);
  color: var(--color-accent-strong);
  border-color: transparent;
}

/* Foods catalog */
.food__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
}

.food__link:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.food__thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
}

.food__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.food__thumb--empty {
  background: var(--color-accent-tint);
  border: 1px dashed var(--color-line);
  color: var(--color-muted);
}

.food__thumb--empty svg {
  width: 22px;
  height: 22px;
}

.food__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.food__top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.food__top h3 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-9) var(--space-4);
  text-align: center;
}

.empty__icon {
  color: var(--color-muted);
}

.empty__icon svg {
  width: 34px;
  height: 34px;
}

.empty p {
  max-width: 32ch;
  color: var(--color-muted);
}

