html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Güvenli alan (çentikli ekranlar) */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.safe-top {
  padding-top: env(safe-area-inset-top, 0);
}

/* Dokunmatik hedefler */
.tap-target {
  min-height: 44px;
  min-width: 44px;
}

/* Mobil menü animasyonu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

#mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
}

/* FAQ özeti — uzun sorularda taşmayı önle */
details summary .faq-question {
  flex: 1;
  text-align: left;
  padding-right: 0.5rem;
}

/* Yatay kaydırma çubuğu gizle (admin sekmeleri) */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Küçük ekranlarda tipografi sıkıştırma */
#video-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#video-popup.is-visible .video-popup-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.video-popup-panel {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@media (max-width: 639px) {
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.2;
  }

  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
}
