/* ═══════════════════════════════════════════════════════════════
   GMK site header'ı — tek stil dosyası (/lib/gm-site-header.php ile birlikte)
   Kendi sınıfları (gmh-*) ve hesap menüsü (gm-account-*) dışında hiçbir şeyi etkilemez;
   sayfaların genel a/button/* kurallarına karşı değerleri açıkça verir.
   ═══════════════════════════════════════════════════════════════ */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: local("Plus Jakarta Sans"), local("PlusJakartaSans"), url(/assets/fonts/plus-jakarta-sans.woff2) format("woff2"); }
html { scroll-padding-top: 132px; }

.gmh {
  position: sticky; top: 0; z-index: 60; display: block; margin: 0; padding: 0;
  background: rgba(30, 41, 39, .94); color: #f0f1f2;
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  font: 400 14px/1.4 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-align: left; transition: box-shadow .3s ease, background .3s ease;
}
.gmh *, .gmh *::before, .gmh *::after { box-sizing: border-box; }
.gmh a { color: inherit; text-decoration: none; }
.gmh :focus-visible { outline: 3px solid #e4a676; outline-offset: 3px; }
.gmh.is-scrolled { background: rgba(26, 36, 34, .97); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }

/* ───── üst satır ───── */
.gmh-ust__ic { max-width: 1280px; margin: 0 auto; padding: 0 32px; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: min-height .3s ease; }
.gmh.is-scrolled .gmh-ust__ic { min-height: 60px; }
.gmh .gmh-marka { display: flex; align-items: center; gap: 14px; min-height: 44px; color: #f4f3ea; }
.gmh-marka__ad { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: #f4f3ea; transition: color .2s; }
.gmh .gmh-marka:hover .gmh-marka__ad { color: #fff; }

/* ───── animasyonlu logo ───── */
.gmh-logo { position: relative; display: grid; place-items: center; flex: none; width: 54px; height: 54px; transition: width .3s ease, height .3s ease; }
.gmh-logo img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain;
  animation: gmh-logo-gir .9s cubic-bezier(.18, 1.25, .35, 1) both;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 10px rgba(238, 133, 57, .18));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.gmh-marka:hover .gmh-logo img { transform: scale(1.06) rotate(-4deg); }
.gmh-logo__parilti {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .8) 48%, rgba(255, 228, 196, .35) 53%, transparent 64%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url(/assets/img/gmk-logo-20261017-kucuk.webp) center / contain no-repeat; mask: url(/assets/img/gmk-logo-20261017-kucuk.webp) center / contain no-repeat;
  mix-blend-mode: screen; animation: gmh-logo-parilti 6s ease-in-out 1.2s infinite;
}
.gmh-logo__halka { position: absolute; inset: 4%; border-radius: 50%; border: 2px solid rgba(238, 133, 57, .6); opacity: 0; pointer-events: none; animation: gmh-logo-halka 6s ease-out 1.4s infinite; }
.gmh-logo__halka--2 { animation-delay: 2.1s; }
.gmh-marka:hover .gmh-logo__halka { animation-duration: 1.6s; animation-delay: 0s; }
.gmh-marka:hover .gmh-logo__halka--2 { animation-delay: .5s; }
.gmh.is-scrolled .gmh-logo { width: 44px; height: 44px; }
@keyframes gmh-logo-gir { 0% { opacity: 0; transform: scale(.4) rotate(-22deg); filter: blur(6px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes gmh-logo-parilti { 0%, 62% { background-position: 160% 0; } 82%, 100% { background-position: -60% 0; } }
@keyframes gmh-logo-halka { 0% { opacity: .9; transform: scale(.88); } 30% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* ───── hesap (feed.js / gm-header.js doldurur) ───── */
.gmh .gm-account { position: relative; flex: none; display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; }
.gmh .gmh-hesap__basit { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid #535558; border-radius: 30px; background: #2d3035; color: #e6e7e9; font-weight: 650; }
.gmh .gmh-hesap__basit:hover { border-color: #b08561; color: #fff; }
.gmh .gm-account-disclosure { position: relative; }
.gmh .gm-account-disclosure summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; margin: 0; border: 1px solid #535558; border-radius: 30px; background: #2d3035; color: #e6e7e9; cursor: pointer; min-height: 43px; max-width: 190px; font: inherit; }
.gmh .gm-account-disclosure summary::-webkit-details-marker { display: none; }
.gmh .gm-account-disclosure summary::marker { content: ""; }
.gmh .gm-account-disclosure[open] summary { border-color: #b08561; background: #34373d; }
.gmh .gm-account-avatar { position: relative; overflow: hidden; display: grid; place-items: center; flex: none; width: 31px; height: 31px; background: linear-gradient(135deg, #d38c51, #826b5b); color: #fff; border: 2px solid #5a5148; border-radius: 50%; font-size: 13px; font-weight: 700; }
.gmh .gm-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; max-width: none; }
.gmh .gm-account-name { max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; color: #e6e7e9; }
.gmh .gm-account-caret { color: #a2a5ab; font-size: 15px; }
.gmh .gm-account-panel { position: absolute; right: 0; top: calc(100% + 13px); z-index: 5; width: 252px; max-width: calc(100vw - 28px); padding: 17px 9px 9px; border: 1px solid #535860; border-radius: 14px; background: #292e35; box-shadow: 0 18px 40px rgba(0, 0, 0, .27); }
.gmh .gm-account-label { display: block; font-size: 9px; letter-spacing: 1.6px; color: #b69270; padding: 0 12px 9px; }
.gmh .gm-account-panel nav { display: flex; flex-direction: column; gap: 3px; }
.gmh .gm-account-panel a { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 8px; font-size: 13px; color: #d0d5dc !important; line-height: 1.5; min-height: 42px; }
.gmh .gm-account-panel a:hover, .gmh .gm-account-panel a:focus { background: #3c4149; color: #fff !important; }
.gmh .gm-account-panel .gm-account-register { background: #a66436; color: #fff !important; }
.gmh .gm-account-panel .gm-account-admin { border-top: 1px solid #53565c; margin-top: 7px; border-radius: 0 0 8px 8px; color: #e3b48c !important; }
.gmh .gm-account-panel .gm-account-logout { border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 8px; padding-top: 14px; color: #edb48a !important; }
.gmh .gm-account-messages { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border: 1px solid #535558; border-radius: 50%; color: #d4dae1 !important; background: #2d3035; }
.gmh .gm-account-messages:hover { border-color: #b08561; background: #34373d; }
.gmh .gm-account-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; background: #d6533f; color: #fff; font-size: 9px; font-weight: 750; line-height: 1; box-shadow: 0 0 0 2px #292e35; }
.gmh .gm-account-messages > .gm-account-unread { position: absolute; top: -4px; right: -5px; }
.gmh .gm-account-unread[hidden] { display: none !important; }
.gmh .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ───── menü ───── */
.gmh-menu { position: relative; display: block; background: rgba(38, 50, 47, .96); border-top: 1px solid rgba(255, 255, 255, .05); }
.gmh-menu__ic { display: flex; align-items: center; gap: 2px; max-width: 1280px; margin: 0 auto; padding: 0 32px 0 19px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth; }
.gmh-menu__ic::-webkit-scrollbar { display: none; }
.gmh .gmh-menu a {
  position: relative; display: flex; align-items: center; flex: none; min-height: 46px; padding: 0 13px; margin: 0;
  border-radius: 0; background: transparent; font-size: 13px; font-weight: 600; letter-spacing: -.005em; line-height: 1; white-space: nowrap; color: #d3dcd3;
  transition: color .18s ease, background .18s ease;
}
.gmh .gmh-menu a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #ee8539, #ffb066); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.gmh .gmh-menu a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.gmh .gmh-menu a:hover::after, .gmh .gmh-menu a.is-active::after { transform: scaleX(1); }
.gmh .gmh-menu a.is-active { color: #fff; }
.gmh .gmh-menu a:focus-visible { outline-offset: -3px; }

/* ───── tek satır varyantı (forum): menü üst bara taşınır, beyaz yazı ───── */
.gmh--tek .gmh-ust__ic { gap: 24px; }
.gmh--tek .gmh-menu--inline { flex: 1 1 auto; min-width: 0; background: transparent; border-top: none; }
.gmh--tek .gmh-menu--inline .gmh-menu__ic { max-width: none; margin: 0; padding: 0; justify-content: center; }
.gmh--tek .gmh-menu--inline::before, .gmh--tek .gmh-menu--inline::after { top: auto; bottom: auto; height: 100%; }
/* Forum temasının "a,a:link,a:visited,a:active{color:...!important}" kuralını (gm-forum.css) yenmek için !important zorunlu. */
.gmh--tek .gmh-menu--inline a,
.gmh--tek .gmh-menu--inline a:link,
.gmh--tek .gmh-menu--inline a:visited,
.gmh--tek .gmh-menu--inline a:active,
.gmh--tek .gmh-menu--inline a:hover,
.gmh--tek .gmh-menu--inline a:focus,
.gmh--tek .gmh-menu--inline a.is-active { color: #fff !important; }
.gmh--tek .gmh-menu--inline a.gmh-menu__forum,
.gmh--tek .gmh-menu--inline a.gmh-menu__forum:link,
.gmh--tek .gmh-menu--inline a.gmh-menu__forum:visited,
.gmh--tek .gmh-menu--inline a.gmh-menu__forum:active { color: #ffd0a8 !important; }
.gmh--tek .gmh-menu--inline a.gmh-menu__forum:hover,
.gmh--tek .gmh-menu--inline a.gmh-menu__forum:focus,
.gmh--tek .gmh-menu--inline a.gmh-menu__forum.is-active { color: #1d0d02 !important; }
.gmh--tek .gmh-hesap { flex: none; }
@media (max-width: 900px) {
  .gmh--tek .gmh-ust__ic { gap: 14px; }
  .gmh--tek .gmh-marka__ad { display: none; }
  .gmh--tek .gmh-menu--inline .gmh-menu__ic { justify-content: flex-start; }
}
.gmh-burger { display: none; }
.gmh-perde { display: none; }
.gmh-menu__ikon { width: 16px; height: 16px; margin-right: 6px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.gmh-yeni {
  display: inline-flex; align-items: center; height: 17px; margin-left: 7px; padding: 0 6px; border-radius: 999px;
  background: linear-gradient(180deg, #ee8539, #d46c28); color: #1d0d02; font-size: 9px; font-weight: 800; letter-spacing: .08em;
  animation: gmh-yeni-nabiz 2.8s ease-out infinite;
}
@keyframes gmh-yeni-nabiz { 0% { box-shadow: 0 0 0 0 rgba(238, 133, 57, .55); } 60%, 100% { box-shadow: 0 0 0 7px rgba(238, 133, 57, 0); } }
.gmh .gmh-menu a.gmh-menu__forum {
  min-height: 32px; margin-block: 7px; margin-right: 6px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 200, 151, .35); background: rgba(238, 133, 57, .1); color: #ffd0a8; font-weight: 700;
}
.gmh-menu__oyun { margin-left: auto; }
.gmh .gmh-menu a.gmh-menu__forum::after { display: none; }
.gmh .gmh-menu a.gmh-menu__forum:hover, .gmh .gmh-menu a.gmh-menu__forum.is-active { background: #d97732; border-color: #d97732; color: #1d0d02; }

/* mobil kenar göstergeleri */
.gmh-menu::before, .gmh-menu::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
.gmh-menu::before { left: 0; background: linear-gradient(90deg, #26322f, rgba(38, 50, 47, 0)); }
.gmh-menu::after { right: 0; background: linear-gradient(270deg, #26322f, rgba(38, 50, 47, 0)); }
.gmh-menu.is-sol::before, .gmh-menu.is-sag::after { opacity: 1; }

@media (max-width: 640px) {
  html { scroll-padding-top: 118px; }
  .gmh-ust__ic { min-height: 66px; padding: 0 20px; }
  .gmh.is-scrolled .gmh-ust__ic { min-height: 54px; }
  .gmh-marka__ad { display: none; }
  .gmh-logo { width: 44px; height: 44px; }
  .gmh.is-scrolled .gmh-logo { width: 38px; height: 38px; }
  .gmh .gm-account { gap: 9px; }
  .gmh .gm-account-disclosure summary { gap: 7px; min-height: 40px; max-width: 175px; }
  .gmh .gm-account-name { font-size: 12px; max-width: 100px; }
  .gmh .gm-account-messages { width: 36px; height: 36px; }
  .gmh-menu__ic { padding-inline: 8px; scroll-snap-type: x proximity; }
  .gmh .gmh-menu a { min-height: 44px; padding: 0 12px; scroll-snap-align: start; }
  .gmh .gmh-menu a.gmh-menu__oyun { margin-left: 6px; margin-right: 6px; }
}
@media print { .gmh { position: static; box-shadow: none; } .gmh-menu { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .gmh-logo img, .gmh-logo__parilti, .gmh-logo__halka, .gmh-yeni { animation: none !important; }
  .gmh-logo__halka { display: none; }
}

/* ───── MOBİL: hamburger + tam genişlik menü paneli ───── */
@media (max-width: 900px) {
  .gmh { position: sticky; }
  .gmh .gmh-burger {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 1px solid #535558; border-radius: 12px; background: #2d3035; color: #e6e7e9; cursor: pointer;
    transition: background .18s, border-color .18s;
  }
  .gmh .gmh-burger i { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, opacity .16s ease; }
  .gmh .gmh-burger[aria-expanded="true"] { background: #34373d; border-color: #b08561; }
  .gmh .gmh-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gmh .gmh-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .gmh .gmh-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gmh .gmh-hesap { margin-left: 0; }

  /* menü satırı -> açılır panel */
  .gmh .gmh-menu,
  .gmh--tek .gmh-menu--inline {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 45;
    flex: none; min-width: 0; background: #26322f; border-top: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 24px 48px rgba(0,0,0,.5);
    max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 10px 14px;
  }
  .gmh.is-menu-acik .gmh-menu,
  .gmh--tek.is-menu-acik .gmh-menu--inline { display: block; }
  .gmh .gmh-menu::before, .gmh .gmh-menu::after { display: none; }

  .gmh .gmh-menu__ic,
  .gmh--tek .gmh-menu--inline .gmh-menu__ic {
    display: flex; flex-direction: column; align-items: stretch; gap: 3px;
    max-width: none; margin: 0; padding: 0; overflow: visible;
  }
  .gmh .gmh-menu a {
    min-height: 50px; padding: 0 15px; margin: 0; border-radius: 10px;
    font-size: 15px; font-weight: 600; justify-content: flex-start; white-space: normal;
  }
  .gmh .gmh-menu a.is-active { background: rgba(238,133,57,.14); }
  .gmh .gmh-menu a.gmh-menu__oyun { margin: 0; }
  .gmh .gmh-menu a.gmh-menu__forum {
    min-height: 50px; margin: 0; padding: 0 15px; border-radius: 10px;
    border: 1px solid rgba(255,200,151,.3); background: rgba(238,133,57,.12);
    justify-content: center; text-align: center; margin-bottom: 6px;
  }
  .gmh .gmh-menu a.gmh-menu__forum:hover,
  .gmh .gmh-menu a.gmh-menu__forum.is-active { background: #d97732; border-color: #d97732; color: #1d0d02; }

  /* arka plan perdesi */
  .gmh.is-menu-acik .gmh-perde {
    display: block; position: fixed; inset: 0; top: 0; z-index: 44;
    background: rgba(10,14,13,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  .gmh.is-menu-acik { z-index: 70; }
  body.gmh-menu-acik { overflow: hidden; }
}
@media (max-width: 460px) {
  .gmh .gmh-menu a { font-size: 14px; min-height: 48px; }
}
