/* ==========================================================================
   perf.css - Mobil performans optimizasyonları
   Tüm sayfalarda ana CSS'ten SONRA yüklenir. Amaç: mobilde kasma/donmayı azaltmak.
   ========================================================================== */

/* Hızlı erişim çubuğu kaldırıldı */
.slider-side-rail {
  display: none !important;
}

/* Header: sticky yok (masaüstü + mobil); krem boşluk (body padding) yok */
html, body {
  margin: 0 !important;
  padding-top: 0 !important;
}



/* Mobil: üst krem şerit yok */
@media (max-width: 760px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .page-transition.loaded {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .page-header-content {
    padding-top: 24px !important;
  }
  /* Alt içerik soft zemin kullanmaya devam etsin */
  main {
    background: var(--soft, #f5f1eb);
  }
}

@media (max-width: 900px) {

  /* DISABLE HEAVY PAINT OPERATIONS ON MOBILE GLOBALLY */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-box-reflect: none !important;
  }

  .models-section, .hero {
    background: #fdfdfd !important;
  }

  /* DISABLE SCROLL REVEAL ANIMATIONS ON MOBILE */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }

  /* 1) background-attachment: fixed mobilde ciddi repaint/jank yaratır -> scroll */
  * {
    background-attachment: scroll !important;
  }

  /* 2) Sabit/animasyonlu elemanlarda backdrop-filter en pahalı GPU işidir.
        Mobilde kaldırıp yarı saydam düz arka planla değiştiriyoruz. */
  .mega-menu,
  .simple-dropdown,
  .slider-rail-inner {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* 3) Kalıcı will-change GPU belleğini şişirir; mobilde gerek yok. */
  .door-item,
  .door-item img,
  .door-label,
  .hero-slide,
  .reveal {
    will-change: auto !important;
  }
}

/* 4) Kullanıcı "hareket azalt" derse tüm animasyonları neredeyse kapat. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


.scroll-down-indicator {
  display: inline-block;
  margin-top: 60px;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  animation: bounce 2s infinite;
  text-decoration: none;
  transition: color 0.3s;
}
.scroll-down-indicator:hover {
  color: #fff;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* ==========================================================================
   Tema: beyaz header ekosistemi (tüm sayfalar)
   ========================================================================== */

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #222;
  text-transform: none;
  transition: .25s ease;
  white-space: nowrap;
}

/* Kurumsal dropdown — header beyazı */
.simple-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.simple-dropdown a {
  color: #222 !important;
  font-weight: 600 !important;
}
.simple-dropdown a:hover {
  background: rgba(227, 24, 55, .08) !important;
  color: #000 !important;
}

/* Modellerimiz mega menü — header beyazı */
.mega-menu-content {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mega-intro {
  background: transparent !important;
  border: none !important;
}
.mega-intro h3 {
  color: #111 !important;
}
.mega-intro p {
  color: rgba(0, 0, 0, .55) !important;
}
.mega-intro-link {
  color: #111 !important;
}
.mega-link {
  background: #f6f6f6 !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
}
.mega-link:hover {
  background: rgba(227, 24, 55, .06) !important;
  border-color: rgba(227, 24, 55, .25) !important;
}
.mega-link i {
  color: #fff !important;
}
.mega-link strong {
  color: #111 !important;
}
.mega-link span {
  color: rgba(0, 0, 0, .55) !important;
}
.mega-product-card {
  background: transparent !important;
  border: none !important;
}

/* Kurumsal / Modellerimiz — ekstra sağlamlık */
.nav .simple-dropdown,
.nav-item .simple-dropdown {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12) !important;
}
.nav .simple-dropdown a,
.nav-item .simple-dropdown a {
  color: #222 !important;
  font-weight: 600 !important;
}
.nav .mega-menu .mega-menu-content,
.nav-item .mega-menu-content {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
}

/* Satış noktaları — profesyonel kart / badge */
.side-panel .side-dropdown--dealers .side-dealers-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px 12px 14px !important;
  background: #f3f3f3 !important;
}
.side-panel .side-dealer-card {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, .07) !important;
  border-radius: 16px !important;
  padding: 14px 14px 12px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}
.side-panel .side-dealer-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.side-panel .side-dealer-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(227, 24, 55, .08) !important;
  color: var(--primary, #e31837) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.side-panel .side-dealer-badge i {
  font-size: 10px;
}
.side-panel .side-dealer-name {
  display: block !important;
  color: #111 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.3;
  text-align: center !important;
  width: 100%;
}
.side-panel .side-dealer-phone {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.side-panel .side-dealer-phone i {
  font-size: 12px;
  margin: 0 !important;
  color: var(--primary, #e31837);
}
.side-panel .side-dealer-phone:hover {
  background: var(--primary, #e31837) !important;
  color: #fff !important;
  transform: none !important;
}
.side-panel .side-dealer-phone:hover i {
  color: #fff;
}
.side-panel .side-dealer-map-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  margin-top: 2px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px dashed rgba(0, 0, 0, .18) !important;
  background: transparent !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.side-panel .side-dealer-map-cta i {
  color: var(--primary, #e31837);
  font-size: 14px;
}
.side-panel .side-dealer-map-cta:hover {
  background: rgba(227, 24, 55, .06) !important;
  border-color: rgba(227, 24, 55, .35) !important;
  color: #111 !important;
  transform: none !important;
}

/* Eski dealer item (kalıntı) */
.side-panel .side-dealer-item {
  display: none;
}

/* contact-cta — açık arka plan (tüm sayfalar) */
.contact-cta,
section.contact-cta {
  background: #fff !important;
  color: #111 !important;
}
.contact-cta .cta-shell {
  background: #f7f7f7 !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .06) !important;
}
.contact-cta .cta-shell::before {
  background: rgba(227, 24, 55, .08) !important;
}
.contact-cta .cta-left h2 {
  color: #111 !important;
  /* font-weight: tipografi (admin) override — burada sabitleme */
}
.contact-cta .cta-left h2 span {
  color: var(--primary) !important;
}
.contact-cta .cta-right p {
  color: rgba(0, 0, 0, .65) !important;
}
.contact-cta .cta-actions .btn-outline {
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, .22) !important;
  color: #111 !important;
}
.contact-cta .cta-actions .btn-outline:hover {
  background: rgba(0, 0, 0, .05) !important;
  border-color: #111 !important;
  color: #111 !important;
  box-shadow: none !important;
}
.contact-cta .cta-actions .btn-primary:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .15) !important;
}

/* Mobil yan menü — beyaz arka plan */
.side-panel {
  background: #ffffff !important;
  color: #111 !important;
  border-left: 1px solid rgba(0, 0, 0, .08) !important;
  box-shadow: -24px 0 70px rgba(0, 0, 0, .12) !important;
}
.side-panel .close-panel {
  border: 1px solid rgba(0, 0, 0, .12) !important;
  background: #f5f5f5 !important;
  color: #111 !important;
}
.side-panel .close-panel:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.side-panel .side-title h3 {
  color: #111 !important;
  font-weight: 600 !important;
}
.side-panel .side-links a {
  border: 1px solid rgba(0, 0, 0, .08) !important;
  background: #f6f6f6 !important;
  color: #222 !important;
  font-weight: 600 !important;
}
.side-panel .side-links a:hover {
  color: #000 !important;
  background: rgba(227, 24, 55, .08) !important;
}
.side-panel .side-dropdown {
  background: #f6f6f6 !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
}
.side-panel .side-dropdown summary {
  color: #222 !important;
  font-weight: 600 !important;
}
.side-panel .side-dropdown[open] summary {
  background: rgba(227, 24, 55, .08) !important;
  color: #000 !important;
}
.side-panel .side-dropdown-content {
  background: #eeeeee !important;
}
.side-panel .side-dropdown-content a {
  color: rgba(0, 0, 0, .72) !important;
}
.side-panel .side-dropdown-content a:hover {
  color: #000 !important;
  background: rgba(227, 24, 55, .06) !important;
}
.side-panel .contact-box {
  background: #f6f6f6 !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.side-panel .contact-box b {
  color: #111 !important;
}
.side-panel .contact-box a,
.side-panel .contact-box p {
  color: rgba(0, 0, 0, .65) !important;
}
.side-panel .side-cta .btn-outline {
  border-color: rgba(0, 0, 0, .2) !important;
  color: #111 !important;
  background: transparent !important;
}
.side-panel .side-social a {
  background: #f6f6f6 !important;
  color: rgba(0, 0, 0, .72) !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
}
.side-panel .side-social a:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
