/* ------------------------------------------------------------------
   COĞRAFYANIN KONUSU VE BÖLÜMLERİ — karta özgü görsel stil
   Kapsam: yalnız #main ve #modal-body altındaki öğeler.
   Ortak kit dosyalarına (base.css, pdf.css, interaction.css) dokunulmaz.
   Palet kaynak PDF'ten doğrulandı: turuncu #f47f50, koyu turuncu #b8491a,
   krem #faf7eb, şeftali #fce0d3, gri #ecebed.
   Metin kontrastı her yerde WCAG AA (≥4.5:1) üzerindedir.
   ------------------------------------------------------------------ */

/* ---------- sahne genel akışı ---------- */
#main .scene {
  --kart-turuncu: #f47f50;
  --kart-koyu-turuncu: #b8491a;
  --kart-krem: #faf7eb;
  --kart-seftali: #fce0d3;
  --kart-gri: #ecebed;
  --kart-cizgi: #d9d2c9;
  --kart-metin: #282726;
  max-width: 980px;
}

#main .scene .src-para {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--kart-metin);
}

#main .scene .lead-para {
  font-size: 17px;
  line-height: 1.75;
}

#main .scene .vurgu-para {
  font-weight: 700;
  color: #4a3f37;
}

#main .scene .src-baslik {
  margin: 26px 0 12px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--kart-metin);
  padding-bottom: 7px;
  border-bottom: 2px solid var(--kart-seftali);
}

#main .scene .src-baslik:first-child { margin-top: 0; }

#main .scene .src-baslik .etiket {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 3px;
  background: var(--kart-koyu-turuncu);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

/* ---------- amaç / yönerge kutuları ---------- */
#main .scene .purpose {
  border-left: 3px solid var(--kart-turuncu);
  background: var(--kart-krem);
  padding: 14px 18px;
  margin: 0 0 16px;
  border-radius: 0 4px 4px 0;
}

#main .scene .purpose p { margin: 0; }

#main .scene .purpose p.amac::before,
#main .scene .purpose p.yonerge::before {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--kart-koyu-turuncu);
  margin-bottom: 4px;
}

#main .scene .purpose p.amac::before { content: 'AMAÇ'; }
#main .scene .purpose p.yonerge::before { content: 'YÖNERGE'; }

/* ---------- kaynak görselleri ---------- */
#main .scene figure.kaynak-gorsel {
  margin: 20px 0 24px;
  text-align: center;
}

#main .scene figure.kaynak-gorsel .source-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

#main .scene figure.kaynak-gorsel figcaption {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f5550;
}

/* başlangıç küresi — başlığın yanında, sınırlı yükseklikte */
#main .scene figure.baslangic-gorsel .source-image {
  max-height: 230px;
  object-fit: contain;
}

#main .scene figure.iliski-gorsel .source-image { max-width: 640px; }

#main .scene figure.etkinlik-gorsel .source-image {
  max-width: 430px;
  max-height: 620px;
  object-fit: contain;
}

#main .scene figure.katman-gorsel .source-image {
  max-width: 720px;
  max-height: 420px;
  object-fit: contain;
}

#main .scene figure.bolum-gorsel .source-image {
  max-width: 720px;
  max-height: 320px;
  object-fit: cover;
}

/* ---------- alanlar (metin / radio / doldur / secim) ---------- */
#main .scene .alan {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--kart-cizgi);
  border-radius: 5px;
}

#main .scene .alan-etiket {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #33291f;
}

#main .scene .alan-yonerge {
  margin: 0 0 10px;
  font-size: 14px;
  color: #5f5550;
}

#main .scene .alan-metin,
#main .scene .alan-doldur { background: transparent; border: 0; padding: 4px 0; }

#main .scene .yanit-alani {
  width: 100%;
  min-height: 130px;
  padding: 12px 14px;
  border: 1px solid #bdb3a8;
  border-radius: 4px;
  background: #fffdf8;
  color: var(--kart-metin);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}

#main .scene .yanit-alani:focus-visible {
  outline: 3px solid #006e91;
  outline-offset: 1px;
}

#main .scene .yanit-alani[readonly] {
  background: #f4f1ec;
  color: #4a423b;
}

/* radio grubu: Evet / Hayır */
#main .scene .tf-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#main .scene .tf-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #bdb3a8;
  border-radius: 4px;
  background: var(--kart-krem);
  color: #33291f;
  cursor: pointer;
}

#main .scene .tf-options label:hover { border-color: #a4765a; }

#main .scene .tf-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--kart-koyu-turuncu);
  margin: 0;
}

#main .scene .tf-options label:has(input:checked) {
  border-color: var(--kart-koyu-turuncu);
  background: var(--kart-seftali);
  box-shadow: inset 3px 0 var(--kart-koyu-turuncu);
  font-weight: 600;
  color: #8f3612;
}

#main .scene .tf-options label:has(input:disabled) {
  cursor: default;
  opacity: 0.85;
}

/* doldur: kısa yazma alanı */
#main .scene .doldur { display: block; }

#main .scene .doldur input {
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bdb3a8;
  border-radius: 4px;
  background: #fffdf8;
  color: var(--kart-metin);
  font-size: 16px;
}

#main .scene .doldur input:focus-visible {
  outline: 3px solid #006e91;
  outline-offset: 1px;
}

#main .scene .doldur input[readonly] { background: #f4f1ec; }

/* secim: işaretleme kutusu */
#main .scene .secim {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d5cbc0;
  border-radius: 4px;
  background: #fffdf8;
  cursor: pointer;
}

#main .scene .secim input {
  width: 19px;
  height: 19px;
  accent-color: var(--kart-koyu-turuncu);
  margin: 0;
  flex-shrink: 0;
}

#main .scene .secim:has(input:checked) {
  border-color: var(--kart-koyu-turuncu);
  background: var(--kart-seftali);
}

/* Etkinlik 1: doğal / beşerî unsur ikilileri yan yana */
#main .scene .alan-secim .secim { width: 100%; }

/* Etkinlik 2: ifade + alt dal yazma alanı ikilisi */
#main .scene .dal-ifade {
  margin: 18px 0 6px;
  padding: 12px 15px;
  background: var(--kart-gri);
  border-left: 3px solid var(--kart-turuncu);
  border-radius: 0 5px 5px 0;
  font-size: 16px;
  line-height: 1.6;
}

#main .scene .alan-doldur { margin-bottom: 4px; }

/* D/Y ağacı önermeleri */
#main .scene .agac-onerme {
  padding: 13px 16px;
  background: #f0eef0;
  border: 1px solid #d3cdc9;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.6;
}

#main .scene .agac-onerme.kok-onerme {
  background: var(--kart-seftali);
  border-color: #cf9b7f;
  font-weight: 600;
  text-align: center;
}

/* D/Y seçenekleri: iki büyük düğme */
#main .scene .alan-radio[data-alan^="d"] .tf-options label {
  min-width: 92px;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- dönüt (geri bildirim) ---------- */
#main .scene .donut-alan {
  margin: 26px 0 0;
  padding: 18px 20px;
  background: #f6f2ec;
  border: 1px solid #ddd2c6;
  border-radius: 6px;
}

#main .scene .donut-dugme {
  min-height: 46px;
  padding: 11px 20px;
  background: #fff;
  color: var(--kart-koyu-turuncu);
  border: 1px solid #c39b84;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
}

#main .scene .donut-dugme[disabled] {
  background: #efeae4;
  color: #6d625a;
  border-color: #d2c8bf;
  cursor: not-allowed;
}

#main .scene .donut-kapak { margin-top: 16px; }

#main .scene .donut-giris {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a3f37;
}

#main .scene .donut-kutu {
  padding: 15px 17px;
  margin-bottom: 12px;
  background: #fff;
  border-left: 4px solid var(--kart-koyu-turuncu);
  border-radius: 0 5px 5px 0;
}

#main .scene .donut-kutu:last-child { margin-bottom: 0; }

#main .scene .donut-etiket {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--kart-koyu-turuncu);
  text-transform: uppercase;
}

#main .scene .donut-madde {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #2f2925;
}

#main .scene .donut-madde:last-child { margin-bottom: 0; }

#main .scene .donut-no {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--kart-koyu-turuncu);
}

#main .scene .donut-metin { min-width: 0; }

#main .scene .donut-metin:empty::after {
  content: '(Bu çıkış için kaynakta açıklama yer almıyor.)';
  font-style: italic;
  color: #6d625a;
}

/* ---------- bilgi kartları ---------- */
#main .scene .library-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

#main .scene .library-cards .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 118px;
  padding: 16px 17px;
  text-align: left;
  background: #fff;
  border: 1px dotted #c9a58f;
  border-top: 4px solid var(--kart-koyu-turuncu);
  border-radius: 5px;
  color: var(--kart-metin);
  font-weight: 500;
}

#main .scene .library-cards .card .card-text {
  display: block;
  padding: 0;
  font-size: 16px;
  line-height: 1.4;
}

#main .scene .library-cards .card .open-label {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--kart-koyu-turuncu);
}

#main .scene .library-cards .card.is-reviewed {
  border-top-color: #3f7d4e;
  background: #f3f8f3;
}

#main .scene .library-cards .card .isaret {
  margin-left: 6px;
  color: #2f6b3d;
  font-weight: 700;
}

/* ---------- başla / tamamla ---------- */
#main .scene .start-alan,
#main .scene .completion-panel {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
}

#main .scene .start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 250px;
  min-height: 52px;
  padding: 14px 26px;
  background: var(--kart-koyu-turuncu);
  color: #fff;
  border: 0;
  border-bottom: 4px solid #7d2f10;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 700;
}

#main .scene .start-button:hover { background: #a33f16; }

#main .scene .start-button:disabled {
  background: #ded8d1;
  color: #574d46;
  border-bottom-color: #c9c2ba;
}

/* ---------- mağaza uyarısı ---------- */
#main .depo-uyari {
  margin: 0 0 18px;
  padding: 12px 15px;
  background: #fff4e0;
  border-left: 4px solid #8a5300;
  color: #5c3a00;
  font-size: 14px;
}

/* ---------- modal (bilgi kartı) ---------- */
#modal-body .src-para {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #282726;
}

#modal-body .src-baslik {
  margin: 20px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  padding-bottom: 6px;
  border-bottom: 2px solid #fce0d3;
}

#modal-body .src-baslik .etiket {
  display: inline-block;
  margin-right: 7px;
  padding: 2px 8px;
  border-radius: 3px;
  background: #b8491a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

#modal-body li {
  margin: 0 0 6px;
  line-height: 1.55;
}

#modal-body figure.kaynak-gorsel { margin: 16px 0; }

#modal-body figure.kaynak-gorsel .source-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 260px;
  height: auto;
  border-radius: 4px;
}

/* ---------- erişilebilirlik: azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  #main .scene *,
  #modal-body * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- mobil ---------- */
@media (max-width: 700px) {
  #main .scene figure.iliski-gorsel .source-image,
  #main .scene figure.etkinlik-gorsel .source-image,
  #main .scene figure.katman-gorsel .source-image,
  #main .scene figure.bolum-gorsel .source-image { max-height: 300px; }

  #main .scene .library-cards { grid-template-columns: 1fr; }
  #main .scene .library-cards .card { min-height: 90px; }
  #main .scene .donut-alan { padding: 14px 13px; }
  #main .scene .donut-madde { font-size: 14px; }
  #main .scene .tf-options label { min-width: 84px; flex: 1 1 40%; }
  #main .scene .start-button { width: 100%; min-width: 0; }
}


/* Erişilebilirlik düzeltmesi (Lighthouse: color-contrast, heading-order).
   Ortak kit (pdf.css) değiştirilmez; bu dosyada eşit/üstün özgüllükle ezilir.
   .flow-text small ve .flow-text>span şeftali zemin (#fce0d3) üzerinde
   sırasıyla 4.33:1 ve 4.24:1 kalıyordu; WCAG AA eşiği 4.5. Koyulaştırıldı. */
#main .activity-flow .flow-text small { color: #5c4436; }
#main .activity-flow .flow-text > span { color: #5c4436; }

/* Bitiş akışı — referans: biyoloji/biy9.1.2. */
#main .completion-panel {
  margin: 24px 0;
  padding: 20px;
  background: var(--cream, #faf7eb);
  border: 1px solid #e1c9ba;
}
#main .completion-panel .completion-status {
  margin: 0 0 12px;
}
#main .completion-panel .start-button {
  width: 100%;
  font-size: 18px;
}
#main .done-banner {
  background: #e8f3e8;
  border-left: 5px solid #3c7b45;
  padding: 18px;
  margin-top: 14px;
}
#main .library-cards .card .open-label {
  display: block;
  margin-top: 6px;
}

@media (max-width: 560px) { #main .scene figure.kaynak-gorsel .source-image { max-width: 100% !important; } }
