/* V16 - Mobil menü kesin düzeltme
   Amaç: tüm sayfalarda header componentinden gelen mobil menü butonunu görünür ve çalışır hale getirmek. */

@media (max-width: 1080px){
  html, body{
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  body.cg-menu-open{
    overflow:hidden !important;
    touch-action:none !important;
  }

  .cg-header{
    position:sticky !important;
    top:0 !important;
    z-index:2147482000 !important;
    overflow:visible !important;
  }

  .cg-header .cg-topbar,
  .cg-header .cg-nav,
  .cg-header .cg-cta,
  .cg-header .cg-mega-wrap,
  .cg-header .cg-dropdown{
    display:none !important;
  }

  .cg-header .cg-mainbar{
    height:78px !important;
    min-height:78px !important;
    overflow:visible !important;
    background:rgba(0,0,0,.96) !important;
  }

  .cg-header .cg-mainbar-inner{
    height:78px !important;
    min-height:78px !important;
    width:min(100% - 26px,1320px) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    overflow:visible !important;
  }

  .cg-header .cg-brand{
    flex:0 1 auto !important;
    min-width:0 !important;
    max-width:calc(100vw - 132px) !important;
  }

  .cg-header .cg-brand img{
    width:clamp(172px, 48vw, 232px) !important;
    max-width:100% !important;
    max-height:58px !important;
    object-fit:contain !important;
  }

  .cg-header .cg-mobile-tools{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    margin-left:auto !important;
    flex:0 0 auto !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    position:relative !important;
    z-index:2147482001 !important;
  }

  .cg-header .cg-mobile-tools .cg-lang{
    display:none !important;
  }

  .cg-header .cg-mobile-tools .cg-theme{
    display:inline-flex !important;
    width:42px !important;
    height:24px !important;
    min-width:42px !important;
    padding:3px !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  .cg-header .cg-menu-btn{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    padding:0 !important;
    border:1px solid rgba(254,237,1,.42) !important;
    border-radius:15px !important;
    background:rgba(254,237,1,.10) !important;
    color:var(--cg-yellow,#feed01) !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    cursor:pointer !important;
    -webkit-tap-highlight-color:transparent !important;
    box-shadow:0 0 0 1px rgba(0,0,0,.2), 0 12px 30px rgba(0,0,0,.26) !important;
  }

  .cg-header .cg-menu-btn i,
  .cg-header .cg-menu-btn span{
    display:block !important;
    width:21px !important;
    height:2px !important;
    min-height:2px !important;
    border-radius:99px !important;
    background:var(--cg-yellow,#feed01) !important;
    margin:0 !important;
    opacity:1 !important;
    visibility:visible !important;
  }

  .cg-header .cg-drawer{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:2147483000 !important;
    width:100vw !important;
    height:100dvh !important;
    background:rgba(0,0,0,.78) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transition:opacity .18s ease, visibility .18s ease !important;
  }

  .cg-header .cg-drawer.is-open{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
  }

  .cg-header .cg-drawer-panel{
    position:absolute !important;
    inset:0 0 0 auto !important;
    width:min(430px,100vw) !important;
    max-width:100vw !important;
    height:100dvh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    transform:translateX(104%) !important;
    transition:transform .24s ease !important;
    background:linear-gradient(180deg,#090909,#020202) !important;
    border-left:1px solid rgba(254,237,1,.22) !important;
    box-shadow:-30px 0 80px rgba(0,0,0,.65) !important;
    padding:16px !important;
    color:#fff !important;
  }

  .cg-header .cg-drawer.is-open .cg-drawer-panel{
    transform:translateX(0) !important;
  }

  .cg-header .cg-drawer-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding-bottom:14px !important;
    margin-bottom:12px !important;
    border-bottom:1px solid rgba(254,237,1,.16) !important;
  }

  .cg-header .cg-drawer-head img{
    width:min(220px,68vw) !important;
    max-height:58px !important;
    object-fit:contain !important;
  }

  .cg-header .cg-drawer-head button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    border-radius:14px !important;
    border:1px solid rgba(255,255,255,.16) !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    font-size:28px !important;
    line-height:1 !important;
    cursor:pointer !important;
  }

  .cg-header .cg-drawer-tools{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    padding:10px 0 16px !important;
  }

  .cg-header .cg-drawer-tools > a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    height:42px !important;
    padding:0 14px !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.07) !important;
    color:#fff !important;
    font-weight:900 !important;
    white-space:nowrap !important;
  }

  .cg-header .cg-drawer-tools .cg-lang{
    display:inline-flex !important;
    height:42px !important;
    padding:0 12px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.04) !important;
  }

  .cg-header .cg-drawer-tools .cg-theme{
    display:inline-flex !important;
  }

  .cg-header .cg-mobile-nav{
    display:grid !important;
    gap:9px !important;
    width:100% !important;
  }

  .cg-header .cg-mobile-nav a,
  .cg-header .cg-mobile-nav summary{
    display:flex !important;
    align-items:center !important;
    min-height:50px !important;
    padding:12px 15px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.06) !important;
    color:#fff !important;
    font-size:15px !important;
    font-weight:900 !important;
    line-height:1.2 !important;
    list-style:none !important;
  }

  .cg-header .cg-mobile-nav summary::-webkit-details-marker{display:none !important;}
  .cg-header .cg-mobile-nav details{display:block !important;margin:0 !important;padding:0 !important;border:0 !important;}
  .cg-header .cg-mobile-nav details[open] summary{color:#000 !important;background:var(--cg-yellow,#feed01) !important;border-color:var(--cg-yellow,#feed01) !important;}
  .cg-header .cg-mobile-nav details a{
    margin:7px 0 0 12px !important;
    min-height:42px !important;
    padding:10px 14px !important;
    color:#e8e8e8 !important;
    font-size:14px !important;
    font-weight:700 !important;
    background:rgba(0,0,0,.32) !important;
    border-color:rgba(255,255,255,.08) !important;
  }

  .cg-header .cg-mobile-primary{
    justify-content:center !important;
    color:#000 !important;
    background:var(--cg-yellow,#feed01) !important;
    border-color:var(--cg-yellow,#feed01) !important;
  }

  .cg-header .cg-drawer-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin-top:18px !important;
    padding-bottom:18px !important;
  }

  .cg-header .cg-drawer-actions a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:52px !important;
    border-radius:999px !important;
    font-weight:900 !important;
  }

  .cg-header .cg-drawer-actions a:first-child{background:var(--cg-yellow,#feed01) !important;color:#000 !important;}
  .cg-header .cg-drawer-actions a:last-child{border:1px solid rgba(255,255,255,.18) !important;color:#fff !important;background:rgba(255,255,255,.04) !important;}
}

@media (max-width: 460px){
  .cg-header .cg-brand img{width:178px !important;}
  .cg-header .cg-mainbar-inner{width:min(100% - 18px,1320px) !important;gap:6px !important;}
  .cg-header .cg-mobile-tools{gap:6px !important;}
  .cg-header .cg-mobile-tools .cg-theme{width:40px !important;min-width:40px !important;}
  .cg-header .cg-menu-btn{width:46px !important;height:46px !important;min-width:46px !important;}
  .cg-header .cg-drawer-panel{width:100vw !important;padding:14px !important;}
}
