/* ==========================================================================
   Google Sans Flex & Akıcı Orantısal (Responsive 4K / 8K) Değişkenler
   ========================================================================== */
:root {
  --bg-pitch-black: #000000;
  --bg-deep-void: #020307;
  --pure-white: #ffffff;
  --pure-black: #000000;
  --text-muted: rgba(255, 255, 255, 0.55);
  --font-family: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
   Akıcı Orantısal Ölçeklendirme Sistemi (Fluid Responsive Engine):
   - Standart / Laptop Ekranları (1200px - 1920px): ~16px - 21px
   - 2K / 4K / 8K Geniş Ekranlar: 4K'da ~44px, 8K'da ~76px
   - Tablet & Mobil (360px - 768px): ~11.5px - 15px
   - Akıllı Saatler / Mikro Ekranlar (<= 320px): ~7.5px - 10px
   - Sıkışık / Kısıtlı Yükseklik Ekranları: vh bazlı yumuşak daralma
*/
html {
  font-size: 15px;
}

/* Tablet ve Büyük Laptop Ekranları (1440px ve üstü) */
@media (min-width: 1440px) {
  html {
    font-size: 16px;
  }
}

/* 4K Ultra HD Geniş Ekranlar (2560px - 5119px) */
@media (min-width: 2560px) {
  html {
    font-size: clamp(24px, min(1.1vw, 1.85vh), 40px);
  }
}

/* 8K Ultra HD Ekranlar (5120px ve üstü) */
@media (min-width: 5120px) {
  html {
    font-size: clamp(44px, min(1vw, 1.75vh), 76px);
  }
}

/* Tablet / Mobil Dikey Ekranlar (<= 768px) */
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }
}

/* Standart Mobil Ekranlar (<= 480px) */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* Küçük Mobil Ekranlar (<= 390px) */
@media (max-width: 390px) {
  html {
    font-size: 12.5px;
  }
}

/* Akıllı Saatler ve Mikro Ekranlar (320px ve altı) */
@media (max-width: 320px) {
  html {
    font-size: 11.5px;
  }
}

body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-pitch-black);
  color: var(--pure-white);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 2.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.theme-pitch-black {
  background-color: #000000;
}

body.theme-graphite {
  background-color: #0d0f12;
}

body.theme-deep-void {
  background-color: #020307;
}


/* ==========================================================================
   Yapay Zekâ (AI) Sinir Ağı Arkaplanı
   ========================================================================== */
.ambient-dark-void {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-deep-void);
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.ambient-dark-void.reveal {
  opacity: 1;
}

.deep-gradient-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #040814 0%, #010206 65%, #000000 100%);
  opacity: 0.4;
}

.ai-neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.32;
}

/* ==========================================================================
   Sol Üst Logo (aybu.webp - İlk Girişte 1s Gecikmeli Fade-in, Hover Efektsiz)
   ========================================================================== */
.top-nav-bar {
  position: fixed;
  top: 2.2rem;
  left: 2.8rem;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 4.0s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.top-nav-bar.reveal {
  opacity: 1;
  pointer-events: auto;
}

.brand-dock {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.header-white-logo {
  width: 5.4rem;
  height: 5.4rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Sağ Üst Zaman Tutucu (10px to rem = 0.625rem, 0'dan 12. Dakikaya)
   ========================================================================== */
.presentation-timer-badge {
  position: fixed;
  top: 2.4rem;
  right: 2.8rem;
  z-index: 50;
  font-family: var(--font-family);
  font-size: 0.625rem; /* 10px to rem */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.presentation-timer-badge.reveal {
  opacity: 1;
}

/* Responsive Top Bar: Mobile, Tablet & Sıkışık Ekranlar */
@media (max-width: 768px) {
  .top-nav-bar {
    top: 0.95rem;
    left: 1rem;
  }
  .header-white-logo {
    width: 3.8rem;
    height: 3.8rem;
  }
  .presentation-timer-badge {
    top: 1.1rem;
    right: 1rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 480px) {
  .top-nav-bar {
    top: max(1.25rem, env(safe-area-inset-top, 0px));
    left: max(1.25rem, env(safe-area-inset-left, 0px));
  }
  .header-white-logo {
    width: 5.5rem;
    height: 5.5rem;
  }
  .presentation-timer-badge {
    top: 1rem;
    right: 0.9rem;
    font-size: 0.68rem;
  }
}

.presentation-timer-badge .timer-current {
  color: var(--pure-white);
  font-weight: 600;
}

.presentation-timer-badge .timer-target {
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   1. AÇILIŞ SAHNESİ: signature.svg & Sayfanın Altındaki İthaf Metinleri
   ========================================================================== */
.intro-signature-stage {
  position: fixed;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.intro-signature-stage.fade-in {
  opacity: 1;
}

.intro-signature-stage.fade-out {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.signature-wrapper {
  height: 12.5rem; /* Küçültülmüş dengeli imza */
  max-height: 32vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signature-img {
  height: 100%;
  width: auto;
  max-width: 80vw;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
}

/* 
   Sayfanın Alt Bölümündeki İthaf Metni 
   (En alttan 80px = 5rem yukarıda belirir) 
*/
.intro-bottom-credits {
  position: fixed;
  bottom: 4.8rem;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  max-width: 90vw;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  z-index: 55;
  transition: 
    opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

@media (max-width: 768px) {
  .intro-bottom-credits {
    bottom: 5.5rem;
    max-width: calc(100vw - 2.5rem);
    gap: 0.2rem;
  }
}

@media (max-width: 480px) {
  .intro-bottom-credits {
    bottom: 5.5rem;
    max-width: calc(100vw - 2rem);
  }
}

/* Mobil giriş: imza sekansından sonra masaüstü görüntüleme uyarısı */
.mobile-device-notice {
  display: none;
}

@media (max-width: 768px) {
  .mobile-device-notice {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(30rem, calc(100vw - 3rem));
    height: 100dvh;
    margin: auto;
    padding: max(2rem, env(safe-area-inset-top, 0px)) 0 max(2rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.6s ease, visibility 1.6s;
    pointer-events: none;
  }

  .mobile-device-notice.reveal {
    opacity: 1;
    visibility: visible;
  }

  .mobile-notice-primary {
    font-family: var(--font-family);
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--pure-white);
    text-wrap: balance;
  }

  .mobile-notice-secondary {
    max-width: 25rem;
    margin-top: 0.65rem;
    font-family: var(--font-family);
    font-size: clamp(0.82rem, 3.3vw, 1rem);
    font-weight: 350;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
    text-wrap: balance;
  }

}

.intro-bottom-credits.enter {
  opacity: 1;
  transform: translate(-50%, 0);
}

.intro-bottom-credits.exit {
  opacity: 0;
  transform: translate(-50%, 0); /* Direkt yerinde fade-out, yukarı doğru hareket yok */
  transition: opacity 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prepared for - 12pxtorem = 0.75rem (-2pxtorem), gri italic */
.credit-prepared {
  font-family: var(--font-family);
  font-size: 0.75rem; /* 12px to rem */
  font-style: italic;
  color: #9ca3af; /* gri */
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Ankara Yıldırım Beyazit University - 14pxtorem = 0.875rem (-2pxtorem) */
.credit-university {
  font-family: var(--font-family);
  font-size: 0.875rem; /* 14px to rem */
  color: var(--pure-white);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Communication Sciences... - 12pxtorem = 0.75rem (-2pxtorem) */
.credit-department {
  font-family: var(--font-family);
  font-size: 0.75rem; /* 12px to rem */
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   2. BAŞLIK: Kod / Daktilo Stili Kelime Kelime Yazma, Hata Yapma ve Silme
   Google Sans Flex, İnce Font (font-weight: 350) & Normal Espas
   ========================================================================== */
.stage-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

/* SPA Slayt Geçiş Katmanı */
.spa-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Üst (Logo/Zaman) ve Alt (Dil/Sayfalar) güvenli boşlukları (Safe Area) */
  padding: clamp(4.6rem, 9vh, 6.8rem) clamp(1rem, 3.5vw, 3rem) clamp(4.8rem, 9.5vh, 7rem) clamp(1rem, 3.5vw, 3rem);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.4s ease;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.spa-slide::-webkit-scrollbar {
  width: 4px;
}

.spa-slide::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

@media (max-width: 768px) {
  .spa-slide {
    padding-top: 3.8rem;
    padding-bottom: 3.8rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

@media (max-width: 480px) {
  .spa-slide {
    padding-top: calc(3.2rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* Kısa mobil ekranlarda içerik merkezde sıkışmak yerine güvenli alanda kaydırılır. */
@media (max-width: 768px) and (max-height: 700px) {
  .spa-slide {
    padding-top: calc(3.2rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .quote-stage {
    width: calc(100% - 2.5rem);
    max-width: none;
  }

  .quote-card {
    gap: 1.5rem;
  }

  .quote-sentence {
    font-size: 1.55rem;
    line-height: 1.55;
  }

  .quote-citation-wrap {
    font-size: 1rem;
  }
}

/* Telefon yatay kullanımında üst/alt kontroller için gereksiz dikey boşluğu azaltır. */
@media (max-height: 520px) and (orientation: landscape) {
  .spa-slide {
    align-items: flex-start;
    padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.spa-slide.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.spa-slide.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}


.title-stage {
  position: absolute;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.title-stage.enter {
  opacity: 1;
}

.title-stage.exit {
  opacity: 0;
}

.hero-title.typewriter-title {
  font-family: var(--font-family);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 300; /* Bir tık daha ince */
  letter-spacing: 0.015em; /* Normal aralıklar / espas */
  color: var(--pure-white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.15;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  max-width: 95vw;
}

.typewriter-text {
  display: inline;
  white-space: pre-wrap;
}

/* Yazı Mouse / Terminal İmleci */
.typewriter-cursor {
  display: inline-block;
  color: var(--pure-white);
  font-weight: 200;
  margin-left: 0.12em;
  opacity: 1;
  animation: cursorTerminalBlink 0.75s step-start infinite;
  user-select: none;
}

@keyframes cursorTerminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   3. John McCarthy Alıntı Sahnesi
   ========================================================================== */
.quote-stage {
  position: absolute;
  max-width: clamp(62rem, 84vw, 96rem);
  width: 88%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 4.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.quote-stage.enter {
  opacity: 1;
  pointer-events: auto;
}

.quote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.quote-sentence {
  font-family: var(--font-family);
  font-size: clamp(1.35rem, 2.5vw, 3.6rem);
  font-weight: 380;
  line-height: 1.65;
  color: var(--pure-white);
  letter-spacing: -0.012em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  text-wrap: balance;
  text-wrap: pretty;
}

.quote-citation-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-style: normal;
  font-family: var(--font-family);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.65);
}

.citation-label {
  font-family: var(--font-family);
  font-size: 0.5rem; /* 8px to rem = 8/16 = 0.5rem */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  user-select: none;
}

.citation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  font-weight: 450;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  white-space: nowrap;
}

.citation-link:hover {
  color: var(--pure-white);
}

.citation-arrow-icon {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.citation-link:hover .citation-arrow-icon {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   SOL ALT: Siyah Keskin Dil Butonu (Sol Çizgisiz)
   ========================================================================== */
.sharp-lang-widget {
  position: fixed;
  bottom: 4.5rem;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
}

.sharp-lang-widget.reveal {
  opacity: 1;
  pointer-events: auto;
}

.sharp-square-trigger {
  width: 2.85rem;
  height: 2.85rem;
  background: var(--pure-black);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pure-white);
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sharp-square-trigger svg {
  width: 1rem;
  height: 1rem;
}

/* Soldaki ikonun sol bölümünde çizgi olmaz */
.sharp-square-trigger-left {
  border: 1px solid var(--pure-white);
  border-left: none;
}

.sharp-square-trigger:hover {
  background: #18181b;
}

.sharp-lang-drawer {
  display: flex;
  align-items: center;
  background: var(--pure-black);
  border: 1px solid var(--pure-white);
  border-left: none;
  border-radius: 0;
  height: 2.85rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  transition: 
    max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
}

.sharp-lang-drawer.open {
  max-width: min(22rem, calc(100vw - 3.2rem));
  opacity: 1;
  padding: 0 0.8rem;
  z-index: 70;
}

/* Dil butonları 14pxtorem = 0.875rem */
.sharp-item-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-family);
  font-size: 0.875rem; /* 14px to rem */
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  transition: color 0.2s ease;
}

.sharp-item-btn:hover {
  color: var(--pure-white);
}

.sharp-item-btn.active {
  color: var(--pure-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sharp-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem; /* 14px to rem */
  font-weight: 700;
  user-select: none;
  margin: 0 0.25rem;
}

/* ==========================================================================
   SAĞ ALT: Sağa Yapışık Sayfa Butonu (Sağ Çizgisiz)
   ========================================================================== */
.sharp-page-widget {
  position: fixed;
  bottom: 4.5rem;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
}

.sharp-page-widget.reveal {
  opacity: 1;
  pointer-events: auto;
}

/* Sağ bölümdeki ikonun sağ bölümünde çizgi olmaz */
.sharp-square-trigger-right {
  border: 1px solid var(--pure-white);
  border-right: none;
}

.sharp-page-drawer {
  display: flex;
  align-items: center;
  background: var(--pure-black);
  border: 1px solid var(--pure-white);
  border-right: none;
  border-radius: 0;
  height: 2.85rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  transition: 
    max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
}

.sharp-page-drawer.open {
  max-width: min(30rem, calc(100vw - 3.2rem));
  opacity: 1;
  padding: 0 0.8rem;
  z-index: 70;
}

/* Sayfa numaraları 14pxtorem = 0.875rem */
.sharp-page-link {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.875rem; /* 14px to rem */
  font-weight: 500;
  padding: 0.25rem 0.45rem;
  transition: color 0.2s ease;
}

.sharp-page-link:hover {
  color: var(--pure-white);
}

.sharp-page-link.active {
  color: var(--pure-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.current-page-label {
  font-family: var(--font-family);
  font-size: 0.875rem; /* 14px to rem */
  font-weight: 700;
  color: var(--pure-white);
}

/* ==========================================================================
   Sağ En Alt Bölüm: 12pxtorem İtalik Gri Space Geçiş İpucu
   ========================================================================== */
.kb-nav-hint {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 50;
  font-size: 0.75rem; /* 12px to rem */
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-family);
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  text-align: right;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.kb-nav-hint.reveal {
  opacity: 0.85;
}

.kb-nav-hint.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   ÜST ORTA: Sayfa Açıklama Butonu & Modalı (Tüm Sayfalar İçin)
   Sayfa Numaraları ve Dil Bölümü ile Birebir Aynı Tasarım (Keskin Kare, Beyaz Stroke, Siyah Zemin, 14pxtorem)
   ========================================================================== */
.page-desc-widget {
  position: fixed;
  top: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s ease;
}

.page-desc-widget.reveal {
  opacity: 1;
  pointer-events: auto;
}

.page-desc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.45rem;
  padding: 0 1.2rem;
  background: var(--pure-black);
  border: 1px solid var(--pure-white);
  border-radius: 0;
  color: var(--pure-white);
  font-family: var(--font-family);
  font-size: 0.75rem; /* 12px to rem = 12pxtorem */
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-desc-trigger:hover {
  background: var(--pure-white);
  color: var(--pure-black);
}

.page-desc-trigger:active {
  transform: scale(0.98);
}

/* Açıklama Modalı (Keskin Kare Siyah Kutu, Beyaz Stroke, Dışarıda Konumlandırılmış Gri Kapatma Butonu) */
.page-desc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.page-desc-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-desc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-desc-wrapper {
  position: relative;
  z-index: 201;
  width: min(38rem, 92vw);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-desc-modal.open .page-desc-wrapper {
  transform: translateY(0) scale(1);
}

.page-desc-card {
  position: relative;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--pure-black);
  border: 1px solid var(--pure-white);
  border-radius: 0;
  padding: 2rem 2.2rem 1.6rem 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.98);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.desc-card-body {
  min-height: auto;
  padding: 0;
}

.desc-content-text {
  font-family: var(--font-family);
  font-size: 0.875rem; /* 14px to rem = 14pxtorem */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: 0.01em;
}

/* Bölümün Sağ Altındaki Minimal Kapat Butonu */
.desc-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.desc-close-text-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-family);
  font-size: 0.8125rem; /* ~13px */
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.desc-close-text-btn:hover {
  color: var(--pure-white);
}

.desc-close-text-btn:active {
  opacity: 0.7;
}

/* ==========================================================================
   Responsive Çekmeceler & Alt Köşe Butonları (Mobile & Sıkışık Ekranlar)
   ========================================================================== */
@media (max-width: 768px) {
  .page-desc-wrapper {
    width: min(34rem, 90vw);
  }
  .page-desc-card {
    padding: 1.35rem 1.35rem 1.1rem 1.35rem;
    max-height: 82dvh;
  }
  .desc-content-text {
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.6;
  }
  .desc-card-footer {
    margin-top: 1.1rem;
    padding-top: 0.6rem;
  }
  .desc-close-text-btn {
    font-size: clamp(11.5px, 3.1vw, 13px);
  }
  .top-nav-bar {
    top: max(1.5rem, env(safe-area-inset-top, 0px));
    left: max(1.5rem, env(safe-area-inset-left, 0px));
  }
  .presentation-timer-badge {
    top: max(0.95rem, env(safe-area-inset-top, 0px));
    right: max(0.8rem, env(safe-area-inset-right, 0px));
  }
  .page-desc-widget {
    top: max(0.95rem, env(safe-area-inset-top, 0px));
    bottom: auto;
  }
  .sharp-lang-widget {
    bottom: max(3rem, calc(env(safe-area-inset-bottom, 0px) + 2.25rem));
    left: max(0.8rem, env(safe-area-inset-left, 0px));
  }
  .sharp-page-widget {
    bottom: max(3rem, calc(env(safe-area-inset-bottom, 0px) + 2.25rem));
    right: max(0.8rem, env(safe-area-inset-right, 0px));
  }
  .page-desc-trigger {
    height: 2.15rem;
    padding: 0 0.95rem;
    font-size: 0.70rem;
  }
  .sharp-square-trigger {
    width: 3.25rem;
    height: 3.25rem;
  }
  .sharp-square-trigger svg {
    width: 1.1rem;
    height: 1.1rem;
  }
  .sharp-lang-drawer,
  .sharp-page-drawer {
    height: 3.25rem;
  }
  .current-page-label {
    font-size: 0.76rem;
  }
  .sharp-item-btn {
    font-size: 0.76rem;
    padding: 0.2rem 0.35rem;
  }
  .sharp-page-link {
    min-width: 2.8rem;
    height: 100%;
    padding: 0 0.25rem;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sharp-dot {
    display: none;
  }
  .sharp-lang-drawer.open {
    max-width: calc(100vw - 3.2rem);
    padding: 0 0.5rem;
  }
  .sharp-page-drawer.open {
    max-width: calc(100vw - 5rem);
    padding: 0 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sharp-page-drawer.open::-webkit-scrollbar {
    display: none;
  }
  .kb-nav-hint {
    display: block;
    left: 50%;
    right: auto;
    bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 9rem);
    transform: translateX(-50%);
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sharp-lang-widget,
  .sharp-page-widget {
    bottom: max(3rem, calc(env(safe-area-inset-bottom, 0px) + 2.25rem));
  }
  .page-desc-widget {
    top: 0.75rem;
    bottom: auto;
  }
  .page-desc-trigger {
    height: 1.95rem;
    padding: 0 0.8rem;
    font-size: 0.65rem;
  }
  .sharp-square-trigger {
    width: 3.5rem;
    height: 3.5rem;
  }
  .sharp-square-trigger svg {
    width: 1.2rem;
    height: 1.2rem;
  }
  .sharp-lang-drawer,
  .sharp-page-drawer {
    height: 3.5rem;
  }
  .sharp-item-btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.3rem;
  }
  .sharp-page-link {
    font-size: 0.8rem;
    min-width: 3.2rem;
    height: 100%;
    padding: 0 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sharp-dot {
    display: none;
  }
  .current-page-label {
    font-size: 0.9rem;
  }
  .sharp-lang-drawer.open {
    max-width: calc(100vw - 5.5rem);
  }
  .sharp-page-drawer.open {
    max-width: calc(100vw - 5.5rem);
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

/* ==========================================================================
   4K (>= 2560px) & 8K (>= 5120px) Ekranlar için Orantısal İyileştirmeler
   ========================================================================== */
@media (min-width: 2560px) {
  .top-nav-bar {
    top: 2.8rem;
    left: 3.4rem;
  }
  .header-white-logo {
    width: 8.8rem;
    height: 8.8rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.18));
  }
  .presentation-timer-badge {
    top: 3.0rem;
    right: 3.4rem;
  }
  .page-desc-widget {
    top: 2.8rem;
    bottom: auto;
  }
  .page-desc-trigger {
    height: 3.8rem;
    padding: 0 1.8rem;
    border-width: 1.5px;
  }
  .sharp-lang-widget,
  .sharp-page-widget {
    bottom: 5.5rem;
  }
  .sharp-square-trigger-left,
  .sharp-square-trigger-right,
  .sharp-lang-drawer,
  .sharp-page-drawer {
    border-width: 1.5px;
  }
}

@media (min-width: 5120px) {
  .top-nav-bar {
    top: 3.6rem;
    left: 4.4rem;
  }
  .header-white-logo {
    width: 11.5rem;
    height: 11.5rem;
    filter: brightness(0) invert(1) drop-shadow(0 0 32px rgba(255, 255, 255, 0.25));
  }
  .presentation-timer-badge {
    top: 3.8rem;
    right: 4.4rem;
  }
  .page-desc-widget {
    top: 3.6rem;
    bottom: auto;
  }
  .page-desc-trigger {
    height: 4.8rem;
    padding: 0 2.2rem;
    border-width: 2.5px;
  }
  .sharp-lang-widget,
  .sharp-page-widget {
    bottom: 6.8rem;
  }
  .sharp-square-trigger-left,
  .sharp-square-trigger-right,
  .sharp-lang-drawer,
  .sharp-page-drawer {
    border-width: 2.5px;
  }
}
