/* iOS Safari & Chrome 16px Otomatik Zoom Engelleme:
   iOS WebKit, 16px'den küçük font boyutuna sahip input'lara tıklandığında sayfayı zorla zoomlar.
   Mobil cihazlarda 16px taban font tanımlayarak iOS'un sayfayı zoomlamasını %100 engelliyoruz. */
@media screen and (max-width: 767px) {
  input[type="text"],
  input[type="tel"],
  input[type="search"],
  input[type="email"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Custom Styles for Oto Aykaç */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-renault-yellow: #FFCC00;
  --color-primary: #1e3a8a;
  --color-whatsapp: #25d366;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-border: #e2e8f0;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

html, body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

/* Sabit Üst Header ve Sarı Bar - 100% Fixed (Kayma ve Yarım Kalmayı Sıfırlar) */
#main-header-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 40 !important;
}

#header-spacer {
  height: 138px;
  width: 100%;
}
@media (min-width: 640px) {
  #header-spacer {
    height: 142px;
  }
}

/* Görsel Kopyalama ve Sürükleme (Tut-Çek) Koruması */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Custom Scrollbar for Model Dropdown */
#custom-model-list::-webkit-scrollbar {
  width: 6px;
}
#custom-model-list::-webkit-scrollbar-track {
  background: #f8fafc;
}
#custom-model-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
#custom-model-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for slider track while maintaining smooth touch scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Card Hover Elevation */
.card-hover {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.03);
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}
.animate-pulse-subtle {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Mobile Safe Bottom for Sticky Bar */
.mobile-safe-bottom {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
}
@media (min-width: 768px) {
  .mobile-safe-bottom {
    padding-bottom: 0;
  }
}

/* Mobil Sabit Aksiyon Barı & iOS Safe Area Beyaz Kapatıcı */
.mobile-bottom-bar {
  background-color: #ffffff !important;
  padding-top: 10px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* iOS Chrome & Safari alt boşluk / home indicator arkası beyaz uzantı bloğu */
.mobile-bottom-bar::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  background-color: #ffffff !important;
  pointer-events: none;
}

/* Model Slider Card Specifics & Infinite Marquee */
#models-slider {
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important;
  contain: paint;
  will-change: scroll-position;
}

.model-slide-card {
  min-width: 260px;
  max-width: 280px;
  flex-shrink: 0;
  contain: layout paint;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
@media (min-width: 640px) {
  .model-slide-card {
    min-width: 290px;
    max-width: 300px;
  }
}

/* Header Equal Buttons */
.header-action-btn {
  height: 46px;
  width: 195px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
  transition: all 0.2s ease;
}
@media (min-width: 1024px) {
  .header-action-btn {
    height: 48px;
    width: 210px;
    font-size: 14px;
  }
}
