/* ══════════════════════════════════════════════════
   FOOD CARD — Warm parchment theme
   ══════════════════════════════════════════════════ */

.food-card {
  align-self: flex-start;
  flex-shrink: 0;
  width: 330px;
  border-radius: 18px;
  background: #fdf8ef;
  border: 1px solid #d9be9a;
  box-shadow:
    0 2px 12px rgba(100, 60, 10, 0.08),
    0 8px 32px rgba(100, 60, 10, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  font-family: var(--font);
}

/* ── Teal accent band ────────────────────────────── */
.food-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #0d9488, #14b8a6 50%, #0d9488);
}

/* ── Header ──────────────────────────────────────── */
.fc-header {
  position: relative;
  padding: 18px 20px 14px;
  border-bottom: 1px dashed #d9be9a;
}

.fc-header .card-save-btn {
  position: absolute;
  top: 14px;
  right: 14px;
}

.fc-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2b1a0f;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: Georgia, 'Times New Roman', serif;
}

.fc-portion {
  margin-top: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b6040;
  letter-spacing: 0.01em;
}

/* ── Macro pills row ─────────────────────────────── */
.fc-macros {
  display: flex;
  gap: 8px;
  padding: 16px 16px 16px;
}

.fc-macro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 4px 10px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* Gloss highlight on each pill */
.fc-macro::before {
  content: '';
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.fc-macro--cal  { background: linear-gradient(150deg, #ff9f0a 0%, #e8400c 100%); box-shadow: 0 5px 18px rgba(255, 159, 10,  0.38); }
.fc-macro--prot { background: linear-gradient(150deg, #0a84ff 0%, #5e5ce6 100%); box-shadow: 0 5px 18px rgba( 10, 132, 255, 0.38); }
.fc-macro--carb { background: linear-gradient(150deg, #30d158 0%, #00c7be 100%); box-shadow: 0 5px 18px rgba( 48, 209,  88, 0.34); }
.fc-macro--fat  { background: linear-gradient(150deg, #ff375f 0%, #bf5af2 100%); box-shadow: 0 5px 18px rgba(255,  55,  95, 0.36); }

.fc-macro-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
}

.fc-macro-lbl {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

/* ── Sections (nutrients, ingredients) ───────────── */
.fc-section {
  border-top: 1px dashed #d9be9a;
  padding: 13px 16px 15px;
}

.fc-section-label {
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a07850;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212, 169, 106, 0.4);
}

/* ── Nutrients list ──────────────────────────────── */
.fc-nutrients {
  display: flex;
  flex-direction: column;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 169, 106, 0.45) transparent;
}

.fc-nutrients::-webkit-scrollbar       { width: 3px; }
.fc-nutrients::-webkit-scrollbar-track { background: transparent; }
.fc-nutrients::-webkit-scrollbar-thumb { background: rgba(212, 169, 106, 0.55); border-radius: 2px; }

.fc-nutrient-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(212, 169, 106, 0.45);
}

.fc-nutrient-row:last-child { border-bottom: none; }

.fc-nutrient-name {
  font-size: 0.8rem;
  font-weight: 400;
  color: #5a3a1e;
}

.fc-nutrient-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2b1a0f;
  font-variant-numeric: tabular-nums;
}

/* ── Ingredient chips ────────────────────────────── */
.fc-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fc-ingredient-chip {
  font-size: 0.73rem;
  font-weight: 500;
  color: #7a5030;
  background: rgba(212, 169, 106, 0.14);
  border: 1px solid rgba(212, 169, 106, 0.38);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
}
