/* Mobil WebView & Temel Ekran Ayarları */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: #0a0d12;
}

/* Stüdyo modunda ekran kaymasını ve dokunmatik çekmeleri engelle */
body.studio-active, html:has(body.studio-active) {
  overflow: hidden !important;
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
  height: 100% !important;
}

/* Landing sayfasında dikey kaydırmaya ve dokunmaya izin ver */
body.landing-active, body:not(.studio-active) {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  touch-action: auto !important;
  -webkit-touch-callout: default !important;
  -webkit-user-select: auto !important;
  user-select: auto !important;
  height: auto !important;
}

/* Landing sayfasındayken stüdyoya özel butonları gizle */
body.landing-active #cam-toggle-trigger,
body:not(.studio-active) #cam-toggle-trigger,
body.landing-active #mobile-camera-controls,
body:not(.studio-active) #mobile-camera-controls,
body.landing-active #privacy-link,
body:not(.studio-active) #privacy-link {
  display: none !important;
}

/* 3D Canvas ve Dokunmatik Ayarları */
canvas, .viewport, .viewport canvas {
  touch-action: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

/* Sol üstteki brand logosu tıklanamaz */
.topbar .brand {
  cursor: default !important;
  pointer-events: none !important;
}

/* Boot loader animasyonu */
@keyframes bootSpin {
  to { transform: rotate(360deg); }
}

#boot-loader {
  position: fixed;
  inset: 0;
  background: #0a0d12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  z-index: 999999;
}

#boot-loader .spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #1e293b;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: bootSpin 0.7s linear infinite;
}

#boot-loader .loader-text {
  margin-top: 16px;
  font-size: 14px;
  color: #cbd5e1;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Gizlilik Politikası & Kullanım Şartları Bağlantısı */
#privacy-link {
  position: fixed;
  bottom: 8px;
  left: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  z-index: 1000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: color 0.2s ease;
  pointer-events: auto;
  user-select: none;
}

#privacy-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

