/* donör: http://127.0.0.1:8963/mutfaga-giris/kurs-testi/sonuc (DadaGastro kopyası, canlı render — yalnız GET)
   Revize 25 Eki (Beyar, madde 10) — test sonuç kartı Gastro'nun sonuç kartı kalıbında. Kaynak: gastro-mysql
   `public/varliklar/reference/mutfaga-giris/kurs-testi.css` (`.form-card:has(.cq-result)`, `.cq-result`, `.cq-score`, `.cq-verdict`,
   `.cq-feedback`, `.cq-acts`, `.cq-breakdown`/`.cq-brow`, `.cq-review`/`.cq-ritem`, ≤640 dalı) — ölçüler birebir, renkler Diet
   jetonları: Gastro'nun geçti/güçlü yeşili `--green`, kaldı/eksik domatesi Diet'te "gelişime açık" uyarı tonu (`--uyari`,
   `--uyari-yikama`, `--altin-cizgi`; Diet'in `--tomato`su marka yeşili, kırmızı değil). Gastro `.form-card` kutusu
   (`kurs-testi.css`: kağıt, çizgi, `--radius-lg`, `--sh-sm`, 28 / ≤640 18·16) yalnız sonuç kabında. Diet'e özgü üç blok aynı
   ölçü dilinde: ölçek bant çubuğu (`.ts-bant`), kayıt/önceki deneme satırı (`.ts-kayit`, `.ts-kiyas`), kırılım başlıkları. */
#quizResult .form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--sh-sm); padding: 52px 28px 28px; }
.cq-result { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.cq-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cq-score b { display: block; font-size: 38px; line-height: 1; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.cq-score b i { font-style: normal; font-size: 22px; font-weight: 700; color: var(--muted); }
.cq-score small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.cq-verdict { font-size: 22px; font-weight: 800; color: var(--slate); margin: 0; }
.cq-feedback { font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.6; margin: 0; max-width: 52ch; }
.cq-acts { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.cq-acts .btn { min-height: 44px; justify-content: center; }

/* panelin bant içeriği (test formu "Sonuç içeriği") geri bildirimin altında */
.ts-icerik { max-width: 52ch; font-size: 14px; line-height: 1.6; color: var(--slate-2); }
.ts-icerik > :last-child { margin-bottom: 0; }

/* ── ölçek bant çubuğu: dilimler profillerin puan aralığıyla orantılı, işaret puanın yeri ── */
.ts-bant { width: 100%; max-width: 420px; }
.ts-bant-cubuk { position: relative; display: flex; gap: 3px; height: 10px; }
.ts-bant-dilim { border-radius: 999px; background: var(--line); }
.ts-bant-dilim.is-aktif { background: var(--green); }
.ts-bant-isaret {
  position: absolute; top: 50%; width: 18px; height: 18px; margin-left: -9px; transform: translateY(-50%);
  border-radius: 50%; background: var(--paper); border: 3px solid var(--green-deep); box-shadow: var(--sh-sm);
}
.ts-bant-adlar { display: flex; gap: 3px; margin-top: 8px; }
.ts-bant-adlar span { min-width: 0; font-size: 11.5px; font-weight: 500; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.ts-bant-adlar b { display: block; font-weight: 700; color: var(--slate-2); }
.ts-bant-adlar .is-aktif, .ts-bant-adlar .is-aktif b { color: var(--green-deep); }

/* ── kayıt ve önceki deneme satırı ── */
.ts-kayit { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--green-deep); background: var(--tomato-tint); }
.ts-kayit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ts-kayit.is-misafir { color: var(--slate-2); background: var(--zemin); border: 1px solid var(--line); }
.ts-kayit.is-misafir a { color: var(--green-deep); font-weight: 700; }
.ts-kiyas { margin: -4px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.ts-fark { margin-left: 4px; font-weight: 800; color: var(--slate-2); }
.ts-fark.is-artti { color: var(--green); }
.ts-fark.is-azaldi { color: var(--uyari); }

/* ── kırılım: güçlü yanlar / gelişime açık alanlar ── */
.cq-breakdown { width: 100%; max-width: 640px; margin: 30px auto 0; display: grid; gap: 9px; }
.cq-breakdown h3, .cq-review h3 { font-size: 16px; font-weight: 700; color: var(--slate); text-align: center; margin: 0; }
.cq-breakdown h3 + .cq-brow { margin-top: 3px; }
.cq-brow + h3 { margin-top: 14px; }
.cq-brow { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 15px; }
.cq-brow b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--slate); text-align: left; }
.cq-brow span { flex: none; max-width: 45%; font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.cq-brow.is-full span { color: var(--green); }
.cq-brow.is-zero span { color: var(--uyari); }

/* ── öneriler ── */
.cq-review { width: 100%; max-width: 640px; margin: 30px auto 0; display: grid; gap: 12px; text-align: left; }
.cq-ritem { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-md); padding: 14px 16px; }
.cq-ritem b { display: block; font-size: 14px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.cq-ritem p { font-size: 13.5px; color: var(--muted); font-weight: 500; line-height: 1.6; margin: 0 0 8px; }
.cq-ritem a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green-deep); }

/* paylaşım kutusu: Facebook düğmesi (Gastro `.share-btn.fb`), mevcut açılır kutu kalıbıyla */
.share-btn.fb:hover { background: #1877F2; border-color: #1877F2; }

@media (max-width: 640px) {
  #quizResult .form-card { padding: 34px 16px 18px; }
  .cq-score b { font-size: 32px; }
  .cq-acts .btn, .cq-acts .qz-share { width: 100%; }
  .cq-brow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cq-brow span { max-width: none; text-align: left; }
  .ts-kayit { border-radius: var(--radius-md); text-align: left; }
}
