/**
 * AS GOLD GAYRIMENKUL — Ultra Kapsamlı Duyarlı Tasarım (duyarli.css)
 * Breakpoints: 1200px / 992px / 768px / 576px / 400px
 */

/* ==========================================================================
   1. GENEL & FLUID TYPOGRAPHY
   ========================================================================== */
:root {
  --font-baslik-fluid: clamp(24px, 4.5vw, 44px);
  --font-alt-baslik-fluid: clamp(20px, 3.5vw, 32px);
}

/* ==========================================================================
   2. 1200px ALT (KÜÇÜK DESKTOP & BÜYÜK TABLET)
   ========================================================================== */
@media (max-width: 1200px) {
  .ilan-izgara {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .altbilgi-izgara {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .istatistik-sayi {
    font-size: 38px;
  }

  .ilan-detay-izgara {
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
  }
}

/* ==========================================================================
   3. 992px ALT (TABLET & YATAY MOBİL)
   ========================================================================== */
@media (max-width: 992px) {

  /* Header & Menü */
  .ana-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--siyah-kenar-altin);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 40px;
    gap: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9);
    z-index: 1001;
    overflow-y: auto;
  }

  .ana-menu.acik {
    right: 0;
  }

  .menu-link {
    font-size: 16px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .menu-link.aktif {
    background: rgba(201, 168, 76, 0.12);
  }

  .mobil-menu-tetikleyici {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
  }

  /* Hero & Arama */
  .hero-baslik {
    font-size: 38px;
    line-height: 1.25;
  }

  .arama-formu {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .arama-formu button {
    grid-column: span 2;
  }

  /* İstatistikler */
  .istatistik-izgara {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .istatistik-oge:nth-child(2)::after {
    display: none;
  }

  /* İlan Detay & İletişim & Hakkımızda Izgaraları */
  .ilan-detay-izgara,
  .hakkimizda-ana-izgara,
  .iletisim-ana-izgara {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
  }

  .iletisim-sag-kart {
    position: static !important;
  }

  /* Kategori Izgarası */
  .kategori-izgara {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Neden Biz */
  .neden-izgara {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ==========================================================================
   4. 768px ALT (MOBİL CİHAZLAR)
   ========================================================================== */
@media (max-width: 768px) {

  /* Header Butonları */
  .baslik-eylemler .btn span {
    display: none;
  }

  .baslik-eylemler .btn {
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .baslik-eylemler .btn i {
    font-size: 15px;
  }

  /* Boşluklar & Konteyner */
  .kapsayici {
    padding-left: 16px;
    padding-right: 16px;
  }

  :root {
    --header-yukseklik: 72px;
  }

  .header-bosluk-tamponu {
    height: 72px !important;
  }

  .ekmek-kirintisi {
    padding: 14px 0;
  }

  .ekmek-listesi {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ekmek-listesi::-webkit-scrollbar {
    display: none;
  }

  /* Hero */
  .hero-bolumu {
    padding: 110px 0 45px;
    min-height: auto;
  }

  .hero-baslik {
    font-size: 30px;
  }

  .hero-aciklama {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .arama-kapsayici {
    padding: 16px;
    border-radius: 16px;
  }

  .arama-sekmeleri {
    gap: 6px;
    margin-bottom: 14px;
  }

  .arama-sekme {
    padding: 8px 14px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

  .arama-formu {
    grid-template-columns: 1fr;
  }

  .arama-formu button {
    grid-column: span 1;
    padding: 14px;
  }

  /* İlan Kartları & Listesi */
  .ilan-izgara {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ilan-filtre-izgara {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .ilan-filtre-buton-grubu {
    grid-column: span 1 !important;
    display: flex;
    gap: 10px;
  }

  .ilan-filtre-buton-grubu button,
  .ilan-filtre-buton-grubu a {
    flex: 1;
  }

  /* İlan Detay Üst Başlık & Fiyat */
  .ilan-detay-ust {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  .ilan-detay-fiyat-alani {
    text-align: left !important;
    width: 100%;
    padding: 15px 18px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid var(--siyah-kenar-altin);
    border-radius: 12px;
  }

  .ilan-detay-fiyat {
    font-size: 28px !important;
  }

  .ilan-meta-bilgileri {
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-size: 12px !important;
  }

  /* Özellikler Tablosu */
  .ozellikler-izgara {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Kategori & Neden Biz */
  .kategori-izgara {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .neden-izgara {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* Hakkımızda Sayaçları & Vizyon */
  .hakkimizda-sayac-kutulari {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .vizyon-misyon-izgara {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* İletişim Formu */
  .iletisim-form-izgara {
    grid-template-columns: 1fr !important;
  }

  .kart {
    padding: 24px 18px !important;
  }

  /* Footer */
  .altbilgi-izgara {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .altbilgi-alt {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* WhatsApp FAB Butonu */
  .whatsapp-fab {
    bottom: 20px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }

  /* Bölüm Başlıkları */
  .bolum-ana-baslik {
    font-size: 26px;
  }

  .bolum-alt-baslik {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
}

/* ==========================================================================
   5. 480px ALT (KÜÇÜK MOBİL EKRANLAR)
   ========================================================================== */
@media (max-width: 480px) {
  .logo-ana {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .logo-alt {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  :root {
    --header-yukseklik: 66px;
  }

  .header-bosluk-tamponu {
    height: 66px !important;
  }

  .ekmek-kirintisi {
    padding: 12px 0;
  }

  .logo-armasi {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-baslik {
    font-size: 26px;
  }

  .istatistik-izgara {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .istatistik-oge {
    padding: 12px 0;
  }

  .istatistik-oge::after {
    display: none !important;
  }

  .istatistik-sayi {
    font-size: 34px;
  }

  .ozellikler-izgara {
    grid-template-columns: 1fr !important;
  }

  .kategori-izgara {
    grid-template-columns: 1fr !important;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 14px;
    width: 100%;
  }

  .cta-buton-grubu {
    flex-direction: column;
    width: 100%;
  }

  .cta-buton-grubu a {
    width: 100%;
  }
}