/* ============================================================
   assets/css/main.css — PREMIUM AUTO GALERİ
   ÖNEMLİ: Buraya sabit renk (#fff, #000 vb.) YAZMA.
   Tüm renkler includes/theme.php'nin ürettiği değişkenlerden gelir.
   Böylece admin arka planı değiştirince yazılar otomatik uyum sağlar.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════════════
   YAZI BOYUTU KADRANI
   ----------------------------------------------------------
   Sitedeki BÜTÜN yazı boyutları buradan ölçeklenir.
   Tek satır değiştirip tüm siteyi büyütüp küçültebilirsiniz:

       100%    → eski (büyük) hâli
        93.75% → varsayılan, biraz küçük   ← ŞU AN
        87.5%  → belirgin küçük
        81.25% → çok küçük

   px değil % kullanıldı: ziyaretçi tarayıcısından yazı
   boyutunu büyütmüşse (görme güçlüğü vb.) ayarı korunur.
   Kutu boşlukları (padding/margin) px kaldı; sadece yazı ölçeklenir.
   ══════════════════════════════════════════════════════════ */
html { font-size: 81.25%; } /* 13px kök (16 × 0.8125) */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

/* Mobil menü / alt panel açıkken arka sayfanın kaymasını durdurur.
   Sadece body'ye vermek yetmiyor — html'in scrollbar'ı kalıp çift çubuk oluşuyordu. */
html.no-scroll, html.no-scroll body { overflow: hidden; height: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
/* Mobilde 20px yan boşluk ekranın %10'unu yiyordu. 2px'e indirildi —
   kartlar neredeyse kenardan kenara. (Masaüstünde 20px kalıyor: orada
   2px, dar bir dizüstü ekranında içeriği tarayıcı kenarına yapıştırır.) */
@media (max-width: 860px) { .container { padding: 0 2px; } }

/* ─── BUTONLAR ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn-block { width: 100%; }

/* ─── FORM ─────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; }
/* Masaüstünde açılır liste beyaz zeminde görünmüyordu (select'e transparent arka plan
   verilince Chrome color-scheme'i yok sayıyor). Option'lara temayla uyumlu renk. */
.select option, .input option { background-color: var(--surface); color: var(--text); }
.textarea { min-height: 120px; resize: vertical; }
.help { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* ─── NAVBAR ───────────────────────────────────────────── */
.navbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 500; }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.5px; }
.nav-logo i { color: var(--accent); }
.nav-logo img { height: 42px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a { padding: 10px 14px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-soft); border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--accent); }
.nav-menu a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 10px; }
.nav-phone-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
.nav-phone-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav-phone-text strong { font-size: 0.875rem; }
.nav-phone-text small { font-size: 0.6875rem; color: var(--text-muted); }
.nav-icon-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.25rem; cursor: pointer; }

/* ─── HEADER ARAMA İKONU (masaüstü) ────────────────────── */
.nav-search-btn { cursor: pointer; border: 1px solid var(--border); transition: border-color .15s, color .15s; }
.nav-search-btn:hover { border-color: var(--accent); color: var(--accent); }


/* ─── FLASH ────────────────────────────────────────────── */
.flash { display: flex; align-items: center; gap: 10px; max-width: 1400px; margin: 14px auto 0; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--red); }
.flash button { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-muted); }

/* ─── HERO ─────────────────────────────────────────────── */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 70%, transparent) 48%, transparent 85%); }
.hero-inner { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 60px 20px; width: 100%; }
.hero h1 { font-size: clamp(1.625rem, 3.4vw, 2.625rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; max-width: 620px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin-top: 16px; max-width: 460px; color: var(--text-soft); }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ─── HIZLI ARAMA ──────────────────────────────────────── */
.quick-search { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; display: grid; grid-template-columns: repeat(6, 1fr) auto; gap: 8px; align-items: center; }
.quick-search .select { background: transparent; border: none; border-right: 1px solid var(--border); border-radius: 0; }
.quick-search .select:last-of-type { border-right: none; }
@media (max-width: 980px) { .quick-search { grid-template-columns: 1fr 1fr; }
  .quick-search .select { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
  .quick-search .btn { grid-column: 1 / -1; } }

/* ─── İSTATİSTİK ŞERİDİ ────────────────────────────────── */
.stats { background: var(--surface); border-block: 1px solid var(--border); }
.stats-inner { max-width: 1400px; margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 11px; justify-content: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat i { font-size: 1.25rem; color: var(--accent); width: 26px; text-align: center; flex-shrink: 0; }
/* Metin bloğu sabit genişlik + ikon sabit slot: böylece üst-alt ikonlar
   aynı x'te hizalanır (etiket uzunluğu farklı olsa da kaymaz). */
.stat > div { width: 104px; }
.stat strong { font-size: 1.1875rem; font-weight: 800; display: block; line-height: 1.15; }
.stat small { font-size: 0.6875rem; color: var(--text-muted); }
@media (max-width: 760px) { .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .stat:nth-child(2n) { border-right: none; } }

/* ─── BÖLÜM BAŞLIĞI ────────────────────────────────────── */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-size: 1.1875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding-bottom: 10px; position: relative; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--accent); }
.section-link { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; }
.section-link:hover { color: var(--accent); }

/* ─── ARAÇ KARTI ───────────────────────────────────────── */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.car-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
.car-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.car-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: block; }
.car-card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 4px;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: var(--accent); color: var(--on-accent); }
.badge-yeni { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.badge-firsat { background: var(--amber); color: #111; }
.car-card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.car-card-title { font-size: 0.9375rem; font-weight: 700; }
.car-card-title:hover { color: var(--accent); }
.car-card-sub { font-size: 0.8125rem; color: var(--text-muted); }
.car-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0; font-size: 0.6875rem; color: var(--text-muted); }
.car-specs li { display: inline-flex; align-items: center; gap: 5px; }
.car-card-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 1.125rem; font-weight: 800; color: var(--accent); }
.car-card-price small { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }

/* ─── NEDEN BİZ ────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; }
.feature i { font-size: 1.5rem; color: var(--accent); margin-bottom: 10px; }
.feature span { display: block; font-size: 0.8125rem; font-weight: 600; }

/* ─── BOŞ DURUM ────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty i { font-size: 2.375rem; color: var(--text-muted); opacity: .5; margin-bottom: 12px; }
.empty p { color: var(--text-muted); }

/* ─── SAYFALAMA ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pagination .disabled { opacity: .35; }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 44px 20px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 800; margin-bottom: 12px; }
.footer-logo i { color: var(--accent); }
.footer-logo img { height: 38px; }
.footer-desc { font-size: 0.8125rem; color: var(--text-muted); max-width: 320px; }
.footer-col h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-muted); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 20px; display: flex; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; font-size: 0.75rem; color: var(--text-muted); }
.footer-admin:hover { color: var(--accent); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }


/* Mobilde gizlenecek/gösterilecek başlık parçaları */
.nav-mobile-only { display: none; }
@media (max-width: 1100px) {
  .nav-menu, .nav-phone-text { display: none; }
  /* .nav-menu gizlenince onun margin-left:auto'su da gidiyor;
     ikonları sağa itmek için burada devralıyoruz. */
  .nav-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  /* Mobil başlık: sadece logo + hamburger.
     Arama, Teklif Al, telefon ve WhatsApp menünün/alt menünün içinde. */
  .nav-cta, .nav-phone, .nav-search-btn { display: none; }
  .nav-mobile-only { display: grid; }
  .nav-burger { order: 99; }                 /* menü her zaman en sağda */
  .nav-actions { gap: 8px; }
  .nav-icon-btn { width: 40px; height: 40px; font-size: .9375rem; }
  /* Telefon ikonu vurgu renginde — asıl eylem bu */
  .nav-tel { background: var(--accent); color: var(--on-accent); border: none; }
  /* Logo sola dayansın: yan boşluk daralt, ikon-yazı arası kısalt */
  .nav-inner { height: 60px; gap: 8px; padding: 0 2px 0 6px; }   /* logo içerikle hizalı */
  .nav-logo { gap: 7px; }
  .nav-logo i { font-size: 1.25rem; }
  .nav-logo { font-size: 1.0625rem; }
  .nav-logo img { height: 34px; }
}

/* ═══ MOBİL MENÜ (Tigrapos tarzı tam ekran) ═══ */
.mmenu-backdrop { display: none; }
.mmenu {
  position: fixed; inset: 0; z-index: 1000; display: none;
  flex-direction: column; overflow-y: auto;
  background: var(--bg);
  /* Vurgu renginden hafif bir parlama — tema hangi renk olursa olsun uyumlu */
  background-image: radial-gradient(120% 80% at 50% 0%, var(--accent-soft) 0%, transparent 60%);
  padding: 18px 18px calc(28px + env(safe-area-inset-bottom));
  animation: mmenuIn .22s ease;
}
.mmenu.open { display: flex; }
.mmenu { overscroll-behavior: contain; }   /* menü sonuna gelince sayfa kaymasın */
@keyframes mmenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mmenu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mmenu-logo { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.5px; }
.mmenu-logo img { height: 42px; }
.mmenu-logo-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 1.25rem; }
.mmenu-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 1.0625rem; cursor: pointer; }

.mmenu-body { display: flex; flex-direction: column; gap: 10px; }

/* Büyük menü satırı */
.mrow { display: flex; align-items: center; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.mrow-icon { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 1.1875rem; color: var(--accent); }
.mrow-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mrow-text strong { font-size: 1.0625rem; font-weight: 700; }
.mrow-text small { font-size: 0.6875rem; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: var(--text-muted); }
.mrow-arrow { margin-left: auto; color: var(--text-muted); font-size: 0.8125rem; }
.mrow.active { border-color: var(--accent); }
.mrow.active .mrow-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mrow.active .mrow-text small { color: var(--accent); }

/* 2'li küçük kutular */
.mmenu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 22px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  font-size: 0.9375rem; font-weight: 700; }
.mbox-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.125rem; color: var(--accent); }
.mbox.active { border-color: var(--accent); }
.mbox.active .mbox-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Büyük Teklif Al butonu */
.mmenu-cta { display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 6px; padding: 18px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent);
  font-size: 1rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  box-shadow: 0 8px 26px var(--accent-soft); }
.mmenu-cta:active { filter: brightness(.94); }

.mmenu-social { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.mmenu-social a { width: 52px; height: 52px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 1.125rem; color: var(--text-muted); }
.mmenu-social a:hover, .mmenu-social a:active { color: var(--accent); border-color: var(--accent); }

.mmenu-copy { text-align: center; margin-top: 18px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; color: var(--text-muted); opacity: .5; }

@media (min-width: 861px) { .mmenu { display: none !important; } }

/* ═══ MOBİL ALT MENÜ (Kendinsaat tarzı) ═══ */
.bnav { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 78px; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
    background: var(--surface); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 11px 0 9px; font-size: 0.625rem; font-weight: 600; color: var(--text-muted); }
  .bnav > a > i { font-size: 1.125rem; }
  .bnav > a.active { color: var(--accent); }

  /* Ortadaki yükseltilmiş buton (artık "Araçlar") */
  .bnav-fab-wrap { position: relative; color: var(--accent) !important; }
  .bnav-fab { position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent);
    display: grid; place-items: center; font-size: 1.3125rem;
    border: 4px solid var(--bg); box-shadow: 0 6px 20px var(--accent-soft); }
  .bnav-fab-wrap > span:last-child { margin-top: 34px; }
  .bnav-fab-wrap:active .bnav-fab { transform: translateX(-50%) scale(.94); }
}

/* ═══ ARAMA KATMANI (üstten iner) ═══ */
.search-overlay { position: fixed; inset: 0; z-index: 1000; display: none; }
.search-overlay.open { display: block; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.search-overlay-panel { position: absolute; top: 0; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px; box-shadow: var(--shadow); animation: searchDown .22s ease; }
@keyframes searchDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.search-overlay-form { position: relative; display: flex; align-items: center; gap: 10px; }
.search-overlay-form > i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  font-size: 0.9375rem; color: var(--text-muted); pointer-events: none; }
.search-overlay-form input { flex: 1; min-width: 0; padding: 14px 14px 14px 46px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; font-family: inherit; }
.search-overlay-form input::placeholder { color: var(--text-muted); }
.search-overlay-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* Sağdaki buton: boşken X (kapatır), yazı varken ok (arama yapar) */
.search-overlay-action { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; font-size: 1rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s; }
.search-overlay-action .ic-close { display: block; }
.search-overlay-action .ic-go { display: none; }
.search-overlay-form.has-text .search-overlay-action { background: var(--accent);
  border-color: var(--accent); color: var(--on-accent); }
.search-overlay-form.has-text .ic-close { display: none; }
.search-overlay-form.has-text .ic-go { display: block; }
.search-overlay-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 0.8125rem; color: var(--text-muted); }
.search-overlay-hint a { padding: 5px 13px; border-radius: 99px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }
.search-overlay-hint a:active { border-color: var(--accent); color: var(--accent); }

/* ─── GİRİŞ SAYFASI ────────────────────────────────────── */
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 60px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 1.375rem; font-weight: 800; margin-bottom: 4px; }
.auth-card > p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 24px; }
.auth-error { background: color-mix(in srgb, var(--red) 12%, transparent); border: 1px solid var(--red);
  color: var(--red); padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.8125rem; margin-bottom: 16px; }
/* ═══════════ MODÜLER ANA SAYFA ═══════════ */
/* Hero slider */
.hero-slider { position: relative; }
.hero-slider .hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; pointer-events: none; }
.hero-slider.hero-ready .hero-slide { transition: opacity .5s; }
.hero-slider .hero-slide.active { position: relative; align-self: stretch; width: 100%; opacity: 1; pointer-events: auto; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.45); }
.hero-dots button.on { background: #fff; width: 22px; border-radius: 5px; }

/* Marka logoları şeridi */
.brand-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.brand-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 92px; padding: 14px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color .15s; }
.brand-chip:hover { border-color: var(--accent); }
.brand-chip img { height: 30px; object-fit: contain; }
.brand-chip i { font-size: 1.375rem; color: var(--accent); }
.brand-chip span { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }

/* Günün fırsatı */
.deal-card { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; align-items: center; }
.deal-media { position: relative; aspect-ratio: 4/3; }
.deal-media img { width: 100%; height: 100%; object-fit: cover; }
.deal-flag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--on-accent);
  font-size: 0.6875rem; font-weight: 800; padding: 4px 11px; border-radius: 99px; text-transform: uppercase; }
.deal-body { padding: 20px 24px 20px 0; }
.deal-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.deal-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
@media (max-width: 620px) { .deal-card { grid-template-columns: 1fr; } .deal-body { padding: 0 18px 20px; } }

/* Yatay ilan slider */
.car-slider { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; padding: 10px 2px 14px; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.car-slider::-webkit-scrollbar { display: none; height: 0; }
.car-slider > .car-card { flex: 0 0 clamp(240px, 72vw, 300px); scroll-snap-align: start; }
/* Kaydırma okları — sadece masaüstü */
.car-slider-wrap { position: relative; }
.cs-nav { display: none; }
@media (min-width: 901px) {
  .cs-nav { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; z-index: 4; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
    box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: background .15s, color .15s, opacity .15s; }
  .cs-nav:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
  .cs-prev { left: -14px; }
  .cs-next { right: -14px; }
  .cs-nav[disabled] { opacity: .3; cursor: default; }
  .cs-nav[disabled]:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
}

/* CTA / banner */
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.home-cta h2 { font-size: 1.25rem; font-weight: 800; }
.home-cta p { color: var(--text-muted); margin-top: 4px; font-size: 0.9375rem; }
.home-banner { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.home-banner img { width: 100%; height: 150px; object-fit: cover; display: block; }
.home-banner-plain { padding: 30px; background: var(--accent-soft); }
.home-banner-txt { position: absolute; left: 24px; bottom: 20px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.home-banner-plain .home-banner-txt { position: static; color: var(--text); text-shadow: none; }
.home-banner-txt strong { display: block; font-size: 1.375rem; font-weight: 800; }

/* Ekip / blog önizleme */
.home-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.home-team-card { text-align: center; padding: 20px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.home-team-card:hover { border-color: var(--accent); }
.home-team-card img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.home-team-card strong { display: block; font-size: 0.875rem; }
.home-team-card span { font-size: 0.75rem; color: var(--text-muted); }
.home-blog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.home-blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.home-blog-card:hover { border-color: var(--accent); }
.home-blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.home-blog-card div { padding: 13px 15px; }
.home-blog-card strong { font-size: 0.9375rem; font-weight: 700; }

/* Şifre göster/gizle gözü */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 8px 10px; font-size: 0.9375rem; line-height: 1; }
.pw-eye:hover { color: var(--text); }

/* ═══ YENİ ANA SAYFA MODÜLLERİ ═══ */
/* Kategori */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 12px; text-align: center; transition: .15s; }
.cat-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-tile i { font-size: 1.75rem; color: var(--accent); margin-bottom: 10px; }
.cat-tile strong { display: block; font-size: 0.875rem; font-weight: 700; }
.cat-tile span { font-size: 0.6875rem; color: var(--text-muted); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
/* Bütçe */
.bud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bud-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px; position: relative; overflow: hidden; }
.bud-tile:hover { border-color: var(--accent); }
.bud-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.bud-amt { font-size: 1.375rem; font-weight: 800; margin: 6px 0 2px; }
.bud-cnt { font-size: 0.75rem; color: var(--accent); font-weight: 700; }
.bud-bg { position: absolute; right: -8px; bottom: -8px; font-size: 3.5rem; color: var(--accent); opacity: .08; }
@media (max-width: 780px) { .bud-grid { grid-template-columns: repeat(2, 1fr); } }
/* Nasıl çalışır */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; text-align: center; position: relative; }
.step-no { position: absolute; top: 14px; right: 18px; font-size: 2.25rem; font-weight: 900; color: var(--accent); opacity: .14; }
.step-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 14px; }
.step-ic i { font-size: 1.375rem; color: var(--accent); }
.step-card h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 720px) { .steps-grid { grid-template-columns: 1fr; } }
/* Yorumlar */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.rev-stars { color: #f5b301; font-size: 0.8125rem; margin-bottom: 10px; letter-spacing: 2px; }
.rev-card p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 16px; }
.rev-who { display: flex; align-items: center; gap: 11px; }
.rev-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.rev-who strong { display: block; font-size: 0.8125rem; font-weight: 700; }
.rev-who span { font-size: 0.6875rem; color: var(--text-muted); }
@media (max-width: 780px) { .rev-grid { grid-template-columns: 1fr; } }
/* Kredi hesaplayıcı */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.calc-l { padding: 24px 26px; }
.calc-row { margin-bottom: 18px; }
.calc-row label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.calc-val { float: right; color: var(--accent); font-weight: 800; }
.calc-l input[type=range] { width: 100%; accent-color: var(--accent); }
.calc-r { background: var(--accent); color: #fff; padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.calc-cap { font-size: 0.8125rem; opacity: .85; font-weight: 600; }
.calc-big { font-size: 2.25rem; font-weight: 900; margin: 6px 0; }
.calc-sub { font-size: 0.75rem; opacity: .8; }
.calc-btn { margin-top: 18px; background: #fff; color: var(--accent); font-weight: 800; padding: 12px; border-radius: 10px; font-size: 0.875rem; }
@media (max-width: 680px) { .calc { grid-template-columns: 1fr; } }

/* Hizmetler modülü (ana sayfada) — listing.css'ten */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.svc-card:hover { border-color: var(--accent); }
.svc-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--surface-2);
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 1.25rem; color: var(--accent); margin-bottom: 14px; }
.svc-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.svc-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ═══ HERO ALTI ŞERİT — yüzen kart (arama/istatistik/logo/kampanya ortak dili) ═══ */
.home-band { position: relative; z-index: 6; margin-top: -34px; margin-bottom: 6px; }
.home-band > .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.hb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 16px; display: block; }
.hb-card-flush { padding: 0; overflow: hidden; }
/* İstatistikler kart içinde */
.hb-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 20px 16px; }
.hb-stats .stat { border-right: 1px solid var(--border); }
.hb-stats .stat:last-child { border-right: none; }
@media (max-width: 768px) {
  .home-band { margin-top: -26px; }
  .home-band > .container { padding: 0 16px; }
  .hb-card { padding: 12px; }
  .hb-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; padding: 16px 10px; }
  .hb-stats .stat:nth-child(2n) { border-right: none; }
}

/* Kampanya — solda yazı + buton, sağda görsel (mobilde alt alta) */
.hb-campaign { display: grid; grid-template-columns: 1fr 1.15fr; height: 150px; overflow: hidden; }
.hbc-text { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; }
.hbc-text strong { font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.hbc-text span { font-size: 0.8125rem; color: var(--text-muted); margin-top: 5px; }
.hbc-text .btn { margin-top: 13px; align-self: flex-start; }
.hbc-media { display: block; height: 150px; overflow: hidden; background: var(--surface-2); }
.hbc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hbc-empty { display: grid; place-items: center; height: 100%; color: var(--text-muted); font-size: 1.5rem; }
@media (max-width: 700px) {
  .hb-campaign { grid-template-columns: 1.05fr 0.95fr; height: 150px; }
  .hbc-media { height: 150px; }
  .hbc-text { padding: 12px 14px; }
  .hbc-text strong { font-size: 0.9375rem; }
  .hbc-text span { font-size: 0.6875rem; margin-top: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hbc-text .btn { margin-top: 10px; padding: 7px 12px; font-size: 0.75rem; }
}

/* ═══ MARKA LOGOLARI — her ekranda kayan şerit, kompakt çerçeveli kutular ═══ */
.hb-logos { padding: 10px; overflow: hidden; }
.blogo-marquee { overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.blogo-track { display: flex; gap: 8px; width: max-content; animation: blogoScroll 25.5s linear infinite; }
.blogo-marquee:hover .blogo-track,
.blogo-marquee:active .blogo-track { animation-play-state: paused; }
.blogo { flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); transition: border-color .15s, background .15s; }
.blogo:hover { border-color: var(--accent); background: var(--surface); }
.blogo img { height: 22px; width: auto; max-width: 62px; object-fit: contain; display: block; }
.blogo i { font-size: 1rem; color: var(--accent); }
.blogo span { font-size: 0.75rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
@media (max-width: 768px) {
  .hb-logos { padding: 8px; }
  .blogo { padding: 6px 11px; gap: 7px; }
  .blogo img { height: 19px; max-width: 52px; }
  .blogo span { font-size: 0.6875rem; }
  .blogo-track { gap: 7px; animation-duration: 19.5s; }
}
@keyframes blogoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* ═══════════════════════════════════════════════════════════
   FOOTER YASAL LİNKLERİ + ÇEREZ ÇUBUĞU
   Footer her sayfada göründüğü için bu kurallar main.css'te
   olmak ZORUNDA. listing.css yalnızca bazı sayfalarda yüklenir
   (ana sayfa yüklemez) — orada tanımlanırsa stil uygulanmaz.
   ═══════════════════════════════════════════════════════════ */

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  padding: 18px 20px 0; }
.footer-legal a { font-size: 0.75rem; color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }

.cookie-bar { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 900;
  display: flex; align-items: center; gap: 16px; max-width: 880px; margin: 0 auto;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16); }
.cookie-bar p { font-size: 0.8125rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.cookie-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { flex-shrink: 0; }

@media (max-width: 720px) {
  /* Mobil alt menünün üstünde kalsın, üzerine binmesin */
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px;
    text-align: center; bottom: 76px; }
}