/* ============================================================
   🔥 YERİNDEYE — FINAL HEADER ÇÖZÜM (DESKTOP + MOBİL)
   ============================================================ */

/* --- 1. ASTRA HEADER TAMAMEN İPTAL (DESKTOP + MOBILE) --- */
#masthead,
.site-header,
.ast-desktop-header,
.ast-mobile-header-wrap,
.ast-above-header,
.ast-above-header-wrap,
.custom-logo-link,
.site-branding,
.ast-site-identity {
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
}


/* --- 2. SENİN CUSTOM NAVBARINI GLOBAL OLARAK AKTİF ET --- */
.custom-nav {
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 24px;
    background:#454545;
    border-bottom:1px solid rgba(255,255,255,0.12);
    position:relative;
    z-index:99999;
}

/* MENÜ ITEMLERİ */
.custom-nav .menu {
    display:flex;
    gap:28px;
}

.custom-nav .menu a {
    color:#fff;
    font-size:16px;
    font-weight:700;
    letter-spacing:.5px;
    text-decoration:none;
    text-transform:uppercase;
    white-space:nowrap;
    transition:.2s;
}
.custom-nav .menu a:hover {
    color:#ffd700;
}

/* SAĞDAKİ ARAMA + ÜÇ ÇİZGİ */
.custom-nav .icons {
    display:flex;
    gap:16px;
}
.custom-nav .icons i {
    font-size:20px;
    color:#fff;
}

/* ======= 🔥🔥🔥  MOBİL  🔥🔥🔥 ======= */
@media(max-width:850px){

    /* LOGO KAPALI */
    .custom-nav .logo, 
    .custom-nav .logo img {
        display:none !important;
    }

    /* HEADER YÜKSEKLİK SABİT */
    .custom-nav{
        height:58px !important;
        padding:8px 14px !important;
    }

    /* MENÜ = TEK SATIR, ORTALI, ASLA TAŞMA YOK */
    .custom-nav .menu{
        display:flex !important;
        flex-wrap:nowrap !important;
        justify-content:center !important;
        align-items:center !important;
        gap:18px !important;
        overflow-x:hidden !important;
        width:100% !important;
    }

    .custom-nav .menu a{
        font-size:14px !important;
        letter-spacing:0 !important;
    }

    /* SAĞDAKİ İKONLAR MENÜYÜ EZMESİN DİYE SAĞA YASLA */
    .custom-nav .icons{
        margin-left:auto !important;
    }
}

/* ------  DROPDOWN  ------ */
.dropdown:hover .dropdown-menu{
    display:block;
}
.dropdown-menu{
    background:#333;
    border-radius:6px;
    padding:8px 12px;
}
.dropdown-menu a{
    color:white;
    font-size:14px;
}
/* ⭐ SAYFA BAŞLIĞINI / HOME YAZISINI TAMAMEN GİZLE ⭐ */
h1.entry-title,
.ast-page-title,
.page-title,
#page-title,
.entry-header,
.entry-header * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ========================= */
/*  ⭐ MOBİL NAVBAR TAM OTURSUN ⭐ */
/* ========================= */
@media(max-width:920px){

    /* Menü SOLA YASLANMASIN → TAM ORTA */
    .main-header-menu {
        display:flex !important;
        justify-content:center !important;
        align-items:center !important;
        flex-wrap:nowrap !important;
        gap:14px !important;
        white-space:nowrap !important;
        width:100% !important;
        overflow:hidden !important;
    }

    /* Menü yazıları KESİLMEZ */
    .main-header-menu > li > a {
        font-size:14px !important;
        font-weight:600 !important;
        letter-spacing:.3px !important;
        text-transform:uppercase;
        white-space:nowrap !important;
    }

    /* Sağdaki ikon grup menüyü boğmasın */
    .ast-header-custom-item,
    .ast-mobile-menu-buttons,
    .ast-search-menu-icon {
        margin-left:auto !important;
    }

    /* Navbar fixed boşluk yaratmasın */
    .main-header-bar,
    .site-header {
        height:54px !important;
        min-height:54px !important;
        align-items:center !important;
        overflow:hidden !important;
    }
}
/* 📱 Mobilde dropdown tamamen JS kontrolünde */
@media(max-width:768px){
  .dropdown-menu {
    display:none !important;
    position:fixed !important;
    top:60px !important;
    left:0 !important;
    width:100% !important;
    max-height:70vh !important;
    overflow-y:auto !important;
    background:rgba(0,0,0,.95) !important;
    padding:12px 18px !important;
    z-index:99999 !important;
  }

  .dropdown.open .dropdown-menu{
    display:block !important;
  }

  .custom-nav .menu{
    overflow-x:auto !important;
    white-space:nowrap !important;
  }
}
/* 📱 --- NAVBAR MICRO FIX (Sadece mobil) --- */
@media(max-width:768px){

  /* Menü yazıları bir tık daha küçük */
  .custom-nav .menu a{
      font-size:11px !important;
      letter-spacing:0 !important;
  }

  /* Menü aralıklarını minimuma indir */
  .custom-nav .menu{
      gap:6px !important;
  }

  /* Logo yer kaplamasın */
  .custom-nav .logo img{
      height:24px !important;
      width:auto !important;
  }

  /* Sağdaki ikonlar çok yaklaşsın */
  .custom-nav .icons{
      right:4px !important;
      gap:6px !important;
  }

  .custom-nav .icons i{
      font-size:15px !important;
  }
}
