/* ═══════════════════════════════════════════
   KENTDEKS — ÖRNEK SUNUM LAPTOP'I (2026-10-15)
   "03 Örnek Analiz" + "İlçe Verileri" bölümlerinin yerine: admin panelden
   yüklenen PDF, saf CSS ile çizilmiş bir laptop ekranında sayfa sayfa
   gösterilir (js/kd-sunum.js). Görsel/ikon dosyası yok.
   Ekran kasıtlı olarak her iki temada açık zeminli (PDF sayfaları beyaz);
   kasa koyu, taban gümüş — gerçek bir dizüstü gibi, temadan bağımsız.
   Sayfa sığdırma: genişliğe sığar, uzun (dikey) sayfalar ekran içinde kayar.
═══════════════════════════════════════════ */
.kd-sunum-sec {
  background: var(--bg);
  overflow: hidden;            /* taban kapaktan biraz geniş — yatay kaydırma olmasın */
}
.kd-sunum-sec .sec-head { margin-bottom: 44px; }

.kd-laptop {
  margin: 0 auto;
  max-width: 960px;
}

/* kapak (çerçeve + ekran) */
.kd-laptop-kapak {
  position: relative;
  padding: clamp(10px, 1.9vw, 18px) clamp(10px, 1.9vw, 18px) clamp(14px, 2.4vw, 22px);
  border-radius: clamp(12px, 1.8vw, 20px) clamp(12px, 1.8vw, 20px) 4px 4px;
  background: linear-gradient(180deg, #1C1E23 0%, #121317 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 0 0 1px #2B2E35,
    0 30px 60px -30px rgba(0, 0, 0, .55);
}
.kd-laptop-kamera {
  position: absolute;
  top: clamp(4px, .7vw, 7px);
  left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #2E3139;
  box-shadow: inset 0 0 0 1.5px #3A3E47;
}

/* ekran */
.kd-laptop-ekran {
  position: relative;
  display: flex;               /* kısa (yatay) sayfa dikeyde ortalanır; uzun sayfa üstten başlar ve kayar */
  flex-direction: column;
  aspect-ratio: 16 / 10;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 3px;
  background: #EEF0F3;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .28) transparent;
}
.kd-laptop-ekran:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; }
.kd-sunum-tuval { display: block; flex: none; width: 100%; height: auto; margin: auto 0; background: #fff; }
.kd-sunum-tuval[hidden] { display: none; }

/* boş durum (sunum yüklenmemiş) */
.kd-sunum-bos {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(80% 70% at 50% 40%, #FFFFFF 0%, #E9ECF0 100%);
}
.kd-sunum-bos[hidden] { display: none; }
.kd-sunum-bos img { width: clamp(56px, 9vw, 96px); height: auto; opacity: .92; }
.kd-sunum-bos p {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 600;
  color: #475569;               /* ekran her iki temada açık → sabit koyu metin (7.0:1) */
}

/* yükleniyor / hata mesajı */
.kd-sunum-mesaj {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #F8FAFC;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.kd-sunum-mesaj[hidden] { display: none; }

/* taban (klavye gövdesinin önden görünen kenarı) */
.kd-laptop-taban {
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: clamp(10px, 1.6vw, 16px);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #E3E5E9 0%, #C3C7CE 55%, #A9AEB6 100%);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .45);
}
.kd-laptop-taban span {
  position: absolute;
  left: 50%; top: 0;
  width: 16%; height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #B4B8BF 0%, #CDD0D6 100%);
}

/* sayfa denetimleri */
.kd-sunum-kontrol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 30px;
}
.kd-sunum-kontrol[hidden] { display: none; }
.kd-sunum-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--n200);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-heading);
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.kd-sunum-btn:hover:not(:disabled) { border-color: var(--n300); background: var(--n100); }
.kd-sunum-btn:disabled { opacity: .4; cursor: default; }
.kd-sunum-btn:focus-visible,
.kd-sunum-ac:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.kd-sunum-sayfa {
  min-width: 112px;
  text-align: center;
  font-size: 14px;
  color: var(--n700);
  font-variant-numeric: tabular-nums;
}
.kd-sunum-sayfa b { color: var(--text-heading); }
.kd-sunum-ac {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 6px;
  padding: 10px 14px;
  border-radius: var(--r8);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
}
.kd-sunum-ac:hover { background: var(--blue-50); }

html.dark .kd-sunum-ac { color: var(--blue-300); }
html.dark .kd-laptop-kapak {         /* koyu zeminde kasa kaybolmasın */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 0 0 1px #3A3E47,
    0 30px 60px -30px rgba(0, 0, 0, .8);
}
html.dark .kd-sunum-btn:focus-visible,
html.dark .kd-sunum-ac:focus-visible { outline-color: var(--blue-300); }

@media (max-width: 640px) {
  .kd-sunum-sec .sec-head { margin-bottom: 30px; }
  .kd-laptop-ekran { aspect-ratio: 4 / 3; }   /* dar ekranda biraz daha uzun: dikey sayfa okunur */
  .kd-sunum-kontrol { margin-top: 22px; }
  .kd-sunum-ac { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kd-sunum-btn { transition: none; }
}

/* Örnek rapor katmanı (2026-10-16): PDF yokken laptop ekranında pages/ornek-rapor.html?gomulu=1 */
.kd-sunum-bos.kd-sunum-ornekli { padding: 0; gap: 0; background: #D9D3C5; display: block; }
.kd-sunum-ornek { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #D9D3C5; }
.kd-sunum-bos.kd-sunum-ornekli .kd-sunum-ornek-not {
  position: absolute; top: 10px; right: 10px; z-index: 1; margin: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: rgba(46,46,46,.86); padding: 6px 12px; border-radius: 999px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
}
.kd-sunum-bos.kd-sunum-ornekli .kd-sunum-ornek-not:hover { background: rgba(46,46,46,.96); }
.kd-sunum-bos.kd-sunum-ornekli .kd-sunum-ornek-not:focus-visible { outline: 2px solid #F26A4B; outline-offset: 2px; }
