/* Kılıç Spot header — Yankare Medya, 2026-11-02. JS: js/mg-header.js */

.mg-legacy-anchor { display: none !important; }

.mgh {
  --h: 78px;
  position: sticky; top: 0; z-index: 10050;
  transition: transform .45s cubic-bezier(.22, .8, .24, 1);
}
.mgh.is-hidden { transform: translateY(-100%); }
.mgh-note { background: #16181d; color: #f0d9b5; font-size: 13px; text-align: center; padding: 7px 16px; }
.mgh-bar {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(22,24,29, .07);
  transition: background-color .35s, box-shadow .35s;
}
.mgh.is-scrolled .mgh-bar { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 34px rgba(22,24,29, .10); }
.mgh-in {
  display: flex; align-items: center; gap: 24px;
  max-width: 1240px; height: var(--h); margin: 0 auto; padding: 0 24px;
  transition: height .35s cubic-bezier(.22, .8, .24, 1);
}
.mgh.is-scrolled .mgh-in { height: 64px; }

/* Logo */
.mgh-logo { flex: 0 0 auto; display: flex; align-items: center; animation: mgh-in .7s cubic-bezier(.22, .8, .24, 1) both; }
.mgh-logo img { display: block; width: auto; height: 54px; transition: height .35s cubic-bezier(.22, .8, .24, 1), transform .4s; }
.mgh.is-scrolled .mgh-logo img { height: 44px; }
.mgh-logo:hover img { transform: scale(1.04); }

/* Ana menü */
.mgh-nav { position: relative; margin: 0 auto; }
.mgh-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mgh-item { position: relative; animation: mgh-in .6s cubic-bezier(.22, .8, .24, 1) both; }
.mgh-item:nth-child(1) { animation-delay: .05s; } .mgh-item:nth-child(2) { animation-delay: .1s; }
.mgh-item:nth-child(3) { animation-delay: .15s; } .mgh-item:nth-child(4) { animation-delay: .2s; }
.mgh-item:nth-child(5) { animation-delay: .25s; } .mgh-item:nth-child(6) { animation-delay: .3s; }
.mgh-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: none;
  font: 600 15px/1 "Manrope", system-ui, sans-serif; letter-spacing: -.005em;
  color: #2b3445 !important; text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: color .25s;
}
.mgh-link:hover, .mgh-item.is-open > .mgh-link { color: #16181d !important; }
.mgh-item.is-on > .mgh-link { color: #16181d !important; }
.mgh-item.is-on > .mgh-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: #f59e0b;
}
.mgh-caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.mgh-item.is-open .mgh-caret { transform: rotate(180deg); }

/* Fareyi takip eden yumuşak vurgu */
.mgh-glide {
  position: absolute; top: 0; left: 0; height: 42px; width: 0; border-radius: 999px;
  background: rgba(217,35,22, .08); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.22, .8, .24, 1), width .35s cubic-bezier(.22, .8, .24, 1), opacity .25s;
}
.mgh-nav.is-gliding .mgh-glide { opacity: 1; }

/* Açılır kart menü */
.mgh-drop {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 320px;
  display: grid; gap: 4px; padding: 10px;
  background: #fff; border: 1px solid rgba(22,24,29, .08); border-radius: 20px;
  box-shadow: 0 30px 60px rgba(22,24,29, .16), 0 2px 6px rgba(22,24,29, .05);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: 50% 0;
  transition: opacity .25s, transform .3s cubic-bezier(.22, .8, .24, 1), visibility 0s .3s;
}
.mgh-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover köprüsü */
.mgh-item.is-open > .mgh-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.mgh-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
  color: #16181d !important; text-decoration: none !important;
  transition: background-color .2s, transform .25s cubic-bezier(.22, .8, .24, 1);
}
.mgh-card:hover { background: #f4f6f9; transform: translateX(3px); }
.mgh-card b { display: block; font: 700 14.5px/1.3 "Manrope", system-ui, sans-serif; }
.mgh-card small { display: block; margin-top: 2px; color: #6b7487; font: 500 12.5px/1.35 "Manrope", system-ui, sans-serif; }
.mgh-card-ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef3fb, #fbf1e8); color: #d92316;
  transition: transform .35s cubic-bezier(.22, .8, .24, 1);
}
.mgh-card:hover .mgh-card-ico { transform: rotate(-8deg) scale(1.06); }
.mgh-card-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sağ taraf */
.mgh-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; animation: mgh-in .7s .2s cubic-bezier(.22, .8, .24, 1) both; }
.mgh-acc { position: relative; }
.mgh-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4f6f9; border: 1px solid rgba(22,24,29, .07); color: #2b3445; cursor: pointer;
  transition: background-color .2s, transform .25s cubic-bezier(.22, .8, .24, 1), box-shadow .2s;
}
.mgh-icon:hover { background: #fff; box-shadow: 0 8px 20px rgba(22,24,29, .1); transform: translateY(-1px); }
.mgh-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mgh-ava { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #d92316, #4f8ff7); color: #fff; font: 800 14px/1 "Manrope", sans-serif; }
.mgh-acc-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 240px; padding: 8px;
  background: #fff; border: 1px solid rgba(22,24,29, .08); border-radius: 18px;
  box-shadow: 0 30px 60px rgba(22,24,29, .16);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: 100% 0;
  transition: opacity .2s, transform .28s cubic-bezier(.22, .8, .24, 1), visibility 0s .28s;
}
.mgh-acc.is-open .mgh-acc-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mgh-acc-head { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid #eef1f5; }
.mgh-acc-head b { display: block; font: 800 15px/1.3 "Manrope", sans-serif; color: #16181d; }
.mgh-acc-head small { color: #6b7487; font: 500 12.5px "Manrope", sans-serif; }
.mgh-acc-menu a {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 11px;
  color: #2b3445 !important; text-decoration: none !important; font: 600 14px "Manrope", sans-serif;
  transition: background-color .15s;
}
.mgh-acc-menu a:hover { background: #f4f6f9; }
.mgh-acc-menu a.is-main { background: #16181d; color: #fff !important; justify-content: center; margin-bottom: 4px; }
.mgh-acc-menu a.is-main:hover { background: #17294a; }
.mgh-acc-menu a.is-out { color: #c0392b !important; }

.mgh-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 22px;
  border-radius: 999px; background: #16181d; color: #fff !important; text-decoration: none !important;
  font: 700 14.5px/1 "Manrope", system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(22,24,29, .22);
  transition: transform .3s cubic-bezier(.22, .8, .24, 1), box-shadow .3s, background-color .3s;
}
.mgh-cta::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #1f2937, #d92316, #c59b52, #f59e0b);
}
.mgh-cta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.22, .8, .24, 1); }
.mgh-cta:hover { transform: translateY(-2px); background: #17294a; box-shadow: 0 16px 30px rgba(22,24,29, .28); }
.mgh-cta:hover svg { transform: translateX(3px); }

/* Hamburger */
.mgh-burger {
  display: none; position: relative; width: 46px; height: 46px; padding: 0; border-radius: 14px;
  background: #16181d; border: 0; cursor: pointer; z-index: 3;
}
.mgh-burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .35s cubic-bezier(.22, .8, .24, 1), opacity .2s, top .35s cubic-bezier(.22, .8, .24, 1);
}
.mgh-burger span:nth-child(1) { top: 16px; }
.mgh-burger span:nth-child(2) { top: 22px; right: 18px; }
.mgh-burger span:nth-child(3) { top: 28px; }
.mgh.is-drawer .mgh-burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.mgh.is-drawer .mgh-burger span:nth-child(2) { opacity: 0; }
.mgh.is-drawer .mgh-burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobil çekmece */
.mgh-drawer { position: fixed; inset: 0; z-index: 1; visibility: hidden; pointer-events: none; }
.mgh-drawer::before {
  content: ""; position: absolute; inset: 0; background: rgba(12,12,14, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s;
}
.mgh-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--h) + 18px) 22px calc(24px + env(safe-area-inset-bottom));
  background: #fff; overflow-y: auto;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.22, .8, .24, 1);
}
.mgh.is-drawer .mgh-drawer { visibility: visible; pointer-events: auto; }
.mgh.is-drawer .mgh-drawer::before { opacity: 1; }
.mgh.is-drawer .mgh-drawer-panel { transform: none; }
.mgh-ditem, .mgh-dfoot { opacity: 0; transform: translateX(24px); transition: opacity .45s, transform .5s cubic-bezier(.22, .8, .24, 1); }
.mgh.is-drawer .mgh-ditem, .mgh.is-drawer .mgh-dfoot { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.mgh-dnav { display: grid; }
.mgh-ditem { border-bottom: 1px solid #eef1f5; }
.mgh-dlink {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 18px 2px; border: 0; background: none; cursor: pointer;
  font: 800 24px/1.1 "Manrope", system-ui, sans-serif; letter-spacing: -.02em;
  color: #16181d !important; text-decoration: none !important; text-align: left;
}
.mgh-dlink.is-on { color: #d92316 !important; }
.mgh-dlink svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s; }
.mgh-dlink[aria-expanded="true"] svg { transform: rotate(180deg); }
.mgh-dsub { display: grid; gap: 4px; max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22, .8, .24, 1), padding .3s; }
.mgh-dlink[aria-expanded="true"] + .mgh-dsub { max-height: 400px; padding-bottom: 14px; }
.mgh-dsub a {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px;
  color: #2b3445 !important; text-decoration: none !important; font: 700 16px "Manrope", sans-serif;
}
.mgh-dsub a:active { background: #f4f6f9; }
.mgh-dfoot { display: grid; gap: 14px; }
.mgh-cta-wide { justify-content: center; height: 54px; font-size: 16px; }
.mgh-dquick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mgh-dquick a {
  display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 14px;
  background: #f4f6f9; color: #16181d !important; text-decoration: none !important; font: 700 14px "Manrope", sans-serif;
}
.mgh-dacc { display: flex; justify-content: center; gap: 18px; }
.mgh-dacc a { color: #6b7487 !important; font: 600 14px "Manrope", sans-serif; }

@keyframes mgh-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Tablet / mobil */
@media (max-width: 1100px) {
  .mgh-link { padding: 0 12px; font-size: 14.5px; }
  .mgh-in { gap: 14px; }
}
@media (max-width: 991px) {
  .mgh { --h: 66px; }
  .mgh-in { padding: 0 14px; height: var(--h); }
  .mgh.is-scrolled .mgh-in { height: 60px; }
  .mgh-nav, .mgh-actions .mgh-cta { display: none; }
  .mgh-actions { margin-left: auto; }
  .mgh-burger { display: block; }
  .mgh-logo img { height: 46px; }
  .mgh.is-scrolled .mgh-logo img { height: 40px; }
  .mgh-logo, .mgh-actions { position: relative; z-index: 3; }
  .mgh.is-drawer .mgh-bar { background: #fff; box-shadow: none; }
  .mgh-acc-menu { right: -54px; }
}
@media (min-width: 992px) {
  .mgh-drawer { display: none; }
}
html.mgh-lock, html.mgh-lock body { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) {
  .mgh, .mgh *, .mgh *::before, .mgh *::after { animation: none !important; transition: none !important; }
}
html.mgh-lock .mg-tabbar { transform: translateY(140%); }
