/* ============================================================
   DOSYA SORUMLULUGU — screens-14-food-cards.css
   ------------------------------------------------------------
   NE YAPAR   : Yemek Ekle modalindaki AI analiz kartlari — kart yuzeyi,
                malzeme dokumu, gram duzenleme, iskelet, hata ekrani,
                rapor formu.
   KAYNAK     : v3.14.0'da eklendi.
   SIRA       : Zincirin EN SONUNA eklendi. Tum secicileri yeni ad
                uzayindadir (.fc-*), mevcut hicbir kurali ezmez —
                bu yuzden kaskad davranisi degismez.
                Bu dosyanin sirasini DEGISTIRME.
   ------------------------------------------------------------
   Tam dosya listesi ve sira: BAGIMLILIK-HARITASI.md
   ============================================================ */

/* ── KART ── */
.fc-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.fc-card-warn { border-left-color: #D97706; }

.fc-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.fc-head-main { flex: 1; min-width: 0; }
.fc-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 4px;
  word-break: break-word;
}
.fc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.fc-gram-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
}
.fc-cat {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 7px;
}
.fc-badge {
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 7px;
}
.fc-badge-ok   { color: #15803D; background: #E9F7EF; }
.fc-badge-warn { color: #B45309; background: #FEF3C7; }
.fc-source {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  font-style: italic;
}
.fc-chev {
  font-size: 12px;
  color: var(--text3);
  flex-shrink: 0;
  padding-top: 2px;
}

/* ── MAKROLAR ── */
.fc-macros {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.fc-macro { text-align: center; }
.fc-macro-val { font-size: 16px; font-weight: 800; color: var(--text); }
.fc-macro-lbl { font-size: 9.5px; color: var(--text3); }

/* ── DETAY (malzeme dokumu) ── */
.fc-detail { display: none; margin-top: 10px; }
.fc-detail.open { display: block; }

.fc-ing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.fc-ing-total { border-bottom: none; }
.fc-ing-name {
  font-size: 12px;
  color: var(--text2);
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.fc-approx {
  font-size: 9.5px;
  color: var(--text3);
  margin-left: 6px;
  white-space: nowrap;
}
.fc-ing-val { font-size: 12px; color: var(--text3); flex-shrink: 0; }

.fc-ing-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.fc-step {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--text2);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.fc-step:active { transform: scale(0.92); }
.fc-gram {
  width: 52px;
  height: 26px;
  text-align: center;
  border: 1px solid var(--border2);
  border-radius: 7px;
  background: var(--bg2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}
.fc-gram::-webkit-outer-spin-button,
.fc-gram::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fc-unit { font-size: 11px; color: var(--text3); }

.fc-why {
  font-size: 10.5px;
  color: var(--text3);
  line-height: 1.5;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 8px;
  padding: 7px 9px;
}

/* ── EYLEMLER ── */
.fc-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.fc-btn-add {
  flex: 1;
  height: 40px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
}
.fc-btn-add:active { transform: scale(0.97); }
.fc-btn-fav {
  width: 46px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.fc-btn-fav:active { transform: scale(0.94); }
.fc-btn-added {
  flex: 1;
  height: 40px;
  background: #E9F7EF;
  color: #15803D;
  border: 1px solid #BBE5CB;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font);
}

/* ── DISCLAIMER + RAPOR LINKI ── */
.fc-disclaimer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.fc-disclaimer-text { font-size: 10px; color: var(--text3); }
.fc-report-link {
  font-size: 10px;
  color: var(--text3);
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── ATLANAN OGE DIPNOTU (Durum B) ── */
.fc-skipped {
  font-size: 10.5px;
  color: var(--text3);
  padding: 6px 2px 10px;
  line-height: 1.5;
}

/* ── RAPOR FORMU ── */
.fc-report {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.fc-report-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
}
.fc-report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.fc-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font);
}
.fc-chip.active {
  background: var(--orange-light);
  border-color: var(--orange-border);
  color: var(--orange);
}
.fc-report-note {
  width: 100%;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg2);
  color: var(--text);
  font-size: 12px;
  font-family: var(--font);
  padding: 8px 10px;
  resize: none;
  outline: none;
  margin-bottom: 8px;
}
.fc-report-actions { display: flex; gap: 6px; }
.fc-btn-sendreport {
  flex: 1;
  height: 36px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}
.fc-btn-cancelreport {
  height: 36px;
  padding: 0 14px;
  background: var(--bg);
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

/* ── ISKELET (bekleme) ── */
.fc-skel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.fc-skel-line {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 37%, var(--bg) 63%);
  background-size: 400% 100%;
  animation: fc-shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
.fc-skel-title { height: 15px; width: 55%; margin-bottom: 12px; }
.fc-skel-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; }
.fc-skel-cell { height: 28px; }
.fc-skel-note { font-size: 10.5px; color: var(--text3); margin-top: 10px; text-align: center; }
@keyframes fc-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ── HATA EKRANI (Durum C) ── */
.fc-error {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  margin-bottom: 10px;
  text-align: center;
}
.fc-error-icon { font-size: 26px; margin-bottom: 6px; }
.fc-error-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.fc-error-reason {
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.55;
  margin-bottom: 12px;
}
.fc-btn-retry {
  width: 100%;
  height: 42px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  margin-bottom: 6px;
}
.fc-btn-manual {
  width: 100%;
  height: 42px;
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}
