/* ═══════════════════════════════════════════
   Food Search Page
   ═══════════════════════════════════════════ */
#food-search-input:focus {
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 4px rgba(212, 118, 138, .1), var(--shadow) !important;
}
.food-suggestion {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.1rem; cursor: pointer;
  transition: background .15s; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.food-suggestion:last-child { border: none }
.food-suggestion:hover, .food-suggestion.focused { background: var(--cream) }
.fs-emoji { font-size: 1.3rem; flex-shrink: 0; width: 28px; text-align: center }
.fs-name { font-weight: 600; color: var(--dark) }
.fs-cat { font-size: .72rem; color: var(--light); margin-top: .05rem }
.fs-status { margin-left: auto; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50% }
.fss-safe { background: var(--sage) }
.fss-caution { background: var(--terra) }
.fss-danger { background: #e05555 }
.fss-limit { background: var(--gold) }

/* ─── Food Result Card ─── */
.food-result-card {
  background: white; border-radius: 24px; padding: 2rem;
  box-shadow: var(--shadow-lg); margin-bottom: 1.5rem;
  border-left: 5px solid; position: relative; overflow: hidden;
}
.food-result-card.safe { border-color: var(--sage) }
.food-result-card.caution { border-color: var(--terra) }
.food-result-card.danger { border-color: #e05555 }
.food-result-card.limit { border-color: var(--gold) }

.frc-top { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.25rem }
.frc-emoji { font-size: 3rem; flex-shrink: 0; line-height: 1 }
.frc-status-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .9rem; border-radius: 100px; font-size: .78rem;
  font-weight: 700; letter-spacing: .04em; margin-bottom: .5rem;
}
.safe .frc-status-badge { background: var(--sage-p); color: var(--sage) }
.caution .frc-status-badge { background: var(--terra-p); color: var(--terra) }
.danger .frc-status-badge { background: #fee8e8; color: #e05555 }
.limit .frc-status-badge { background: var(--gold-p); color: var(--gold) }
.frc-name { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--dark); line-height: 1.1 }
.frc-also { font-size: .8rem; color: var(--light); margin-top: .2rem }

.frc-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem }
.frc-section { background: var(--cream); border-radius: 14px; padding: 1rem }
.frc-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem }
.safe .frc-section-label { color: var(--sage) }
.caution .frc-section-label { color: var(--terra) }
.danger .frc-section-label { color: #e05555 }
.limit .frc-section-label { color: var(--gold) }
.frc-section-text { font-size: .83rem; color: var(--mid); line-height: 1.6 }

.frc-tips { margin-top: .25rem }
.frc-tip {
  display: flex; gap: .6rem; align-items: flex-start; font-size: .83rem;
  color: var(--mid); padding: .5rem 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.frc-tip:last-child { border: none }
.frc-tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem }

.frc-nutrients { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem }
.frc-nutr-chip {
  background: var(--sage-p); color: var(--sage); border-radius: 100px;
  padding: .2rem .7rem; font-size: .73rem; font-weight: 600;
}

.food-notfound { text-align: center; padding: 3rem 2rem; background: white; border-radius: 20px; box-shadow: var(--shadow) }
.food-notfound-emoji { font-size: 3rem; margin-bottom: .75rem }
.food-notfound-title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .5rem }
.food-notfound-sub { color: var(--mid); font-size: .88rem; line-height: 1.7 }

/* ─── Category Chips ─── */
.food-cat-chip {
  padding: .45rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--border);
  background: white; font-size: .8rem; font-weight: 500; color: var(--mid);
  cursor: pointer; transition: all .2s;
}
.food-cat-chip:hover, .food-cat-chip.active { background: var(--rose); color: white; border-color: var(--rose) }

/* ─── Mini Cards ─── */
.food-mini-card {
  background: white; border-radius: 14px; padding: 1rem 1.1rem;
  box-shadow: var(--shadow); cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: .75rem; border-left: 3px solid;
}
.food-mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg) }
.food-mini-card.safe { border-color: var(--sage) }
.food-mini-card.caution { border-color: var(--terra) }
.food-mini-card.danger { border-color: #e05555 }
.food-mini-card.limit { border-color: var(--gold) }
.fmc-emoji { font-size: 1.5rem; flex-shrink: 0 }
.fmc-name { font-weight: 600; font-size: .87rem; color: var(--dark) }
.fmc-sub { font-size: .73rem; color: var(--light); margin-top: .1rem }
.fmc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-left: auto }
.fmc-dot.safe { background: var(--sage) }
.fmc-dot.caution { background: var(--terra) }
.fmc-dot.danger { background: #e05555 }
.fmc-dot.limit { background: var(--gold) }
