/* Chatbotpagina */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.chat-app { flex: 1; display: flex; flex-direction: column; width: 100%; min-height: 0; }

.intro { padding: 22px 0 6px; }
.intro h1 { font-size: 28px; }
.intro p { margin: 4px 0 0; color: var(--grijs); font-size: 14px; }

/* ---------- Gesprek ---------- */
.gesprek {
  flex: 1;
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bericht {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  animation: in .18s ease-out;
  scroll-margin-top: 12px;
}
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.bericht.gebruiker {
  align-self: flex-end;
  background: var(--bruin);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bericht.bot {
  align-self: flex-start;
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-bottom-left-radius: 4px;
}
.bericht p { margin: 0 0 6px; }
.bericht p:last-child { margin-bottom: 0; }

.gezocht {
  font-size: 11.5px;
  color: var(--grijs);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.gezocht b { font-weight: 500; color: var(--inkt); }

.oordeel {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 10px;
  margin: 6px 0;
}
.oordeel .icoon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.oordeel strong { display: block; font-weight: 600; }
.oordeel small { color: inherit; opacity: .85; font-size: 12.5px; }
.oordeel.ja { background: var(--rood-tint); color: var(--rood); }
.oordeel.ja .icoon { background: var(--rood); }
.oordeel.nee { background: var(--ok-tint); color: var(--ok); }
.oordeel.nee .icoon { background: var(--ok); }
.oordeel.sporen { background: var(--oranje-tint); color: var(--oranje); }
.oordeel.sporen .icoon { background: var(--oranje); }

.categorie {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--bruin);
  margin: 10px 0 4px;
}
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li {
  padding: 6px 0;
  border-bottom: 1px solid var(--lijn);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.lijst li:last-child { border-bottom: 0; }
.lijst .tags { color: var(--grijs); font-size: 12px; text-align: right; }

.waarschuwing {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--oranje-tint);
  color: var(--oranje);
  font-size: 13px;
}

.allergeen-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rood-tint);
  color: var(--rood);
}
.tag.spoor { background: var(--oranje-tint); color: var(--oranje); }
.tag small { opacity: .8; }

.suggesties { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggesties button {
  border: 1px solid var(--lijn);
  background: var(--creme);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.suggesties button:hover { border-color: var(--messing); }

/* ---------- Invoer ---------- */
.invoer-zone {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--creme) 85%, rgba(247,243,234,0));
  padding: 14px 0 calc(10px + env(safe-area-inset-bottom));
}
.chips-rij {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.chips-rij::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--lijn);
  background: var(--papier);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.chip[aria-pressed="true"] { background: var(--bruin); border-color: var(--bruin); color: #fff; }

.filter-knop {
  width: 100%;
  margin-bottom: 8px;
  border: 0;
  border-radius: 12px;
  padding: 11px;
  background: var(--groen);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.vraag-form {
  display: flex;
  gap: 8px;
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  box-shadow: 0 2px 10px rgba(59,42,32,.06);
}
.vraag-form:focus-within { border-color: var(--messing); }
.vraag-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px; /* voorkomt inzoomen op iPhone */
  min-width: 0;
}
.vraag-form button {
  flex: none;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--bruin);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.voet { font-size: 11.5px; color: var(--grijs); text-align: center; margin: 8px 0 0; }

/* AI */
.ai-label {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bruin);
  color: #fff;
  margin-right: 2px;
  vertical-align: 1px;
}
.denken { display: inline-flex; gap: 4px; padding: 4px 2px; }
.denken i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grijs);
  animation: denk 1s infinite ease-in-out;
}
.denken i:nth-child(2) { animation-delay: .15s; }
.denken i:nth-child(3) { animation-delay: .3s; }
@keyframes denk { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
