/* ============================================================
   DOSYA SORUMLULUGU — screens-12-ai-suggest-panel.css
   ------------------------------------------------------------
   NE YAPAR   : AI yemek onerisi paneli (spark butonu, mod secimi, sonuclar).
   KAYNAK     : v3.12.0'da bolundu — kurallar birebir tasindi,
                hicbir kural yeniden yazilmadi veya siralanmadi.
   SIRA       : index.html'deki <link> sirasi kaskadi belirler.
                Bu dosyanin sirasini DEGISTIRME.
   ------------------------------------------------------------
   Tam dosya listesi ve sira: BAGIMLILIK-HARITASI.md
   ============================================================ */

/* ============================================================
   AI SUGGEST PANEL — v2.3.0
   ============================================================ */
.suggest-card-wrap { position: relative; width: 100%; }

.suggest-card {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.suggest-front {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.suggest-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* ✦ Spark button */
.ai-spark-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #FFF2E8;
  border: 1.5px solid #FFCFA8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background .15s, transform .1s, box-shadow .15s;
  flex-shrink: 0;
}
.ai-spark-btn:hover { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(232,93,0,.15); }
.ai-spark-btn:active { transform: scale(.92); }
.ai-spark-btn.pulse { animation: aiSparkPulse 2s ease-in-out .5s 2; }
.ai-spark-btn.hidden { display: none; }
@keyframes aiSparkPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,93,0,0); }
  50%      { box-shadow: 0 0 0 6px rgba(232,93,0,.25); }
}

/* Ripple */
.suggest-ripple-overlay {
  position: absolute; inset: 0;
  border-radius: var(--radius, 18px);
  pointer-events: none; overflow: hidden; z-index: 5;
}
.suggest-ripple-circle {
  position: absolute; border-radius: 50%;
  background: #111; transform: scale(0); pointer-events: none;
}
.suggest-ripple-circle.expanding  { animation: sugRippleIn  .55s cubic-bezier(.4,0,.2,1) forwards; }
.suggest-ripple-circle.collapsing { animation: sugRippleOut .45s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes sugRippleIn  { from{transform:scale(0);opacity:1;} to{transform:scale(1);opacity:1;} }
@keyframes sugRippleOut { from{transform:scale(1);opacity:1;} to{transform:scale(0);opacity:0;} }

/* Back panel */
.suggest-back {
  position: absolute; inset: 0;
  background: #111;
  border-radius: var(--radius, 18px);
  display: none; flex-direction: column;
  z-index: 6;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.suggest-back.visible { display: flex; }
.suggest-back.visible + * + .suggest-front,
.suggest-front.ai-hidden { visibility: hidden; }

/* Back nav */
.suggest-back-nav {
  padding: 10px 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.suggest-back-btn {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.5);
  cursor: pointer; background: none; border: none; padding: 4px 0;
  transition: color .15s;
}
.suggest-back-btn:hover { color: rgba(255,255,255,.9); }
.suggest-back-time {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,.3); font-family: monospace;
}

/* Mode select */
.sug-mode-select { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; animation: sugFadeUp .3s ease forwards; }
.sug-mode-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.sug-mode-card {
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 12px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  display: flex; align-items: center; gap: 10px;
}
.sug-mode-card:hover { background: rgba(232,93,0,.15); border-color: rgba(232,93,0,.4); }
.sug-mode-card:active { transform: scale(.98); }
.sug-mode-icon { font-size: 20px; flex-shrink: 0; }
.sug-mode-info { flex: 1; }
.sug-mode-title { font-size: 12px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.sug-mode-sub { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.45); line-height: 1.4; }
.sug-mode-arrow { font-size: 13px; color: rgba(255,255,255,.25); flex-shrink: 0; }

/* Loading */
.sug-loading { padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: sugFadeUp .3s ease forwards; }
.sug-loading-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; }
.sug-loading-macros { display: flex; flex-direction: column; gap: 6px; }
.sug-loading-row { display: flex; align-items: center; gap: 8px; }
.sug-loading-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.35); width: 48px; flex-shrink: 0; }
.sug-loading-val { font-size: 15px; font-weight: 900; font-family: monospace; min-width: 55px; transition: color .3s; }
.sug-loading-val.counting { color: var(--orange); }
.sug-loading-val.done { color: rgba(255,255,255,.2); }
.sug-loading-unit { font-size: 10px; color: rgba(255,255,255,.25); font-weight: 600; }
.sug-dots { display: flex; gap: 5px; margin-top: 2px; }
.sug-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: sugDotPulse 1.2s ease-in-out infinite; }
.sug-dot:nth-child(2) { animation-delay: .2s; }
.sug-dot:nth-child(3) { animation-delay: .4s; }
@keyframes sugDotPulse { 0%,100%{opacity:.25;transform:scale(.8);}50%{opacity:1;transform:scale(1);} }

/* Results */
.sug-results { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; animation: sugFadeUp .35s ease forwards; }
.sug-results-header { display: flex; align-items: center; justify-content: space-between; }
.sug-summary { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5); line-height: 1.4; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.07); flex: 1; }
.sug-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.sug-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.sug-item-name { font-size: 12px; font-weight: 800; color: #fff; line-height: 1.3; flex: 1; }
.sug-item-time { font-size: 9px; font-weight: 700; color: var(--orange); background: rgba(232,93,0,.15); border-radius: 6px; padding: 2px 6px; flex-shrink: 0; }
.sug-macro-row { display: flex; gap: 5px; flex-wrap: wrap; }
.sug-pill { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px; font-family: monospace; }
.sug-pill.kcal { background: rgba(232,93,0,.18); color: #FF7A20; }
.sug-pill.p    { background: rgba(59,130,246,.18); color: #60A5FA; }
.sug-pill.k    { background: rgba(245,158,11,.18); color: #FCD34D; }
.sug-pill.y    { background: rgba(16,185,129,.18); color: #34D399; }
.sug-prog-wrap { display: flex; align-items: center; gap: 7px; }
.sug-prog-bar { flex: 1; height: 3px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.sug-prog-fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.sug-prog-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.3); font-family: monospace; flex-shrink: 0; }
.sug-item-warn { font-size: 9px; font-weight: 700; color: #FBBF24; background: rgba(251,191,36,.12); border-radius: 5px; padding: 2px 6px; align-self: flex-start; }
.sug-meal-tag { font-size: 9px; color: rgba(255,255,255,.25); font-weight: 600; margin-top: 1px; }
.sug-total { background: rgba(232,93,0,.1); border: 1px solid rgba(232,93,0,.2); border-radius: 11px; padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.sug-total-title { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .06em; }
.sug-total-vals { font-size: 11px; font-weight: 700; color: #FF7A20; font-family: monospace; }
.sug-actions { display: flex; align-items: center; justify-content: center; padding-top: 2px; }
.sug-regen-btn { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); transition: all .15s; }
.sug-regen-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.sug-regen-btn:disabled { opacity: .3; cursor: not-allowed; }
.sug-regen-icon { transition: transform .3s; }
.sug-regen-btn:not(:disabled):hover .sug-regen-icon { transform: rotate(180deg); }
.sug-rate-msg { font-size: 10px; font-weight: 600; color: rgba(255,165,0,.8); text-align: center; padding: 3px 0; }
.sug-stale { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3); border-radius: 9px; padding: 7px 10px; font-size: 10px; font-weight: 700; color: #FCD34D; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sug-stale-btn { cursor: pointer; color: #FCD34D; text-decoration: underline; background: none; border: none; font-size: 10px; font-weight: 700; padding: 0; }
.sug-nogoal, .sug-exceeded { padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: sugFadeUp .3s ease forwards; }
.sug-nogoal-icon { font-size: 24px; }
.sug-nogoal-text, .sug-exceeded-text { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); line-height: 1.5; }
.sug-exceeded-chips { display: flex; gap: 7px; }
.sug-exceeded-chip { font-size: 11px; font-weight: 700; padding: 7px 12px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); cursor: pointer; transition: all .15s; }
.sug-exceeded-chip:hover { background: rgba(255,255,255,.13); color: #fff; }
.sug-overcap { display: none; }
@keyframes sugFadeUp { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }
