/* "What should I cook today?". Builds on style.css and pdf.css (buttons, steps, privacy note). */

.food-tool [hidden] { display: none !important; }
.food-tool .status { color: var(--error); margin: 12px 0 0; text-align: center; }
.food-tool .status:empty { display: none; }

.food-choice { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.food-choice legend { padding: 0; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.food-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.food-chips label { position: relative; }
.food-chips input { position: absolute; opacity: 0; }
.food-chips span {
  display: inline-block;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  line-height: 22px;
}
.food-chips input:checked + span { background: var(--group-soft); border-color: var(--group); color: var(--group-ink); font-weight: 600; }
.food-chips input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--group) 35%, transparent); }
.food-filters .check { margin-top: 4px; }
.food-pool { margin: 12px 0 0; }

.food-card {
  margin-top: 16px;
  padding: 22px 16px;
  border-radius: var(--radius-card);
  background: var(--bg);
  text-align: center;
  min-height: 150px;
}
.food-card.is-picked { background: var(--group-soft); }
.food-kitchen { margin: 0; color: var(--group-ink); font-size: 14px; font-weight: 600; min-height: 1.2em; }
.food-name { margin: 6px 0; font-size: 32px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.food-desc { margin: 0 auto; max-width: 34em; color: var(--muted); }
.food-card.is-picked .food-desc { color: var(--text); }
.food-tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.food-tags li { padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }

.food-tool .food-go {
  display: flex;
  width: 100%;
  min-height: 60px;
  margin: 16px auto 0;
  justify-content: center;
  font-size: 20px;
}
@media (min-width: 640px) { .food-tool .food-go { width: auto; min-width: 320px; } }
.food-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }

.food-excluded { margin-top: 16px; }
.food-excluded summary { cursor: pointer; color: var(--muted); }
.food-excluded ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.food-excluded li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px; padding-inline-start: 12px; border-radius: 10px; background: var(--bg); }

.food-list { columns: 2 140px; margin: 6px 0 16px; padding-inline-start: 20px; }
.food-list li { break-inside: avoid; }

.food-pop { animation: food-pop 0.25s ease-out; }
@keyframes food-pop { from { transform: scale(0.94); opacity: 0.3; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .food-pop { animation: none; } }
