/* ──────────────────────────────────────────────────────────────
   Vanago ortak üst bar. Sitenin tüm sayfalarında aynı işaretleme ve
   bu dosya kullanılır; tema (Sandbox/Bootstrap) sınıflarına bağlı değildir.
   ────────────────────────────────────────────────────────────── */

/* Poppins (SIL OFL 1.1, lisans: ../fonts/poppins/OFL.txt) */
@font-face { font-family: Poppins; src: url(../fonts/poppins/Poppins-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins/Poppins-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/poppins/Poppins-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }

html { scroll-padding-top: 80px; }

.vgh {
  --vgh-h: 64px;
  --vgh-text: #000;
  --vgh-muted: #5e5e5e;
  --vgh-line: #e8e8e8;
  --vgh-hover: #e2626b;     /* eski menüdeki üzerine gelme rengi (marka kırmızısı) */
  --vgh-brand-ink: #c8414b;
  position: sticky; top: 0; z-index: 1030;
  width: 100%;
  background: #fff;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.4; color: var(--vgh-text);
  -webkit-font-smoothing: antialiased;
}
.vgh *, .vgh *::before, .vgh *::after { box-sizing: border-box; }

/* Bootstrap .container ile aynı genişlikler: içerikle hizalı kalır.
   Üç sütun: logo solda, menü tam ortada, dil seçici sağda. */
.vgh__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--vgh-h);
  width: 100%; margin: 0 auto; padding: 0 16px;
}
@media (min-width: 576px)  { .vgh__inner { max-width: 540px; padding: 0 12px; } }
@media (min-width: 768px)  { .vgh__inner { max-width: 720px; } }
@media (min-width: 992px)  { .vgh__inner { max-width: 960px; } }
@media (min-width: 1200px) { .vgh__inner { max-width: 1140px; } }
@media (min-width: 1400px) { .vgh__inner { max-width: 1320px; } }

.vgh__logo { display: flex; align-items: center; justify-self: start; }
/* Görselin alt %30'u "g" harfinin kuyruğu. Harf bandının ortası menü yazılarıyla
   aynı hizaya gelsin diye logo 4px aşağı alınır (26px yükseklikte). */
.vgh__logo img { display: block; height: 26px; width: auto; position: relative; top: 4px; }

.vgh__nav { display: flex; align-items: center; gap: 4px; }
.vgh a.vgh__link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  color: var(--vgh-text); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.vgh a.vgh__link:hover { color: var(--vgh-hover); }
.vgh a:focus-visible, .vgh button:focus-visible { outline: 2px solid var(--vgh-text); outline-offset: 2px; }

.vgh__actions { display: flex; align-items: center; gap: 4px; justify-self: end; }

/* Dil seçici */
.vgh-lang { position: relative; }
.vgh-lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 0; background: transparent; color: var(--vgh-text);
  font: inherit; font-weight: 600; cursor: pointer; transition: color .2s ease;
}
.vgh-lang__btn:hover, .vgh-lang__btn[aria-expanded="true"] { color: var(--vgh-hover); }
.vgh-lang__btn svg { width: 20px; height: 20px; flex: none; }
.vgh-lang__btn .vgh-chevron { width: 14px; height: 14px; transition: transform .15s ease; }
.vgh-lang__btn[aria-expanded="true"] .vgh-chevron { transform: rotate(180deg); }
.vgh-lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 8px;
  background: #fff; border: 1px solid var(--vgh-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}
.vgh-lang__menu[hidden] { display: none; }
.vgh-lang__title { margin: 0; padding: 8px 12px 6px; font-size: 13px; font-weight: 500; color: var(--vgh-muted); }
.vgh-lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 8px; color: var(--vgh-text); text-decoration: none; font-weight: 500;
}
.vgh-lang__menu a:hover { color: var(--vgh-hover); }
.vgh-lang__menu a svg { width: 16px; height: 16px; color: var(--vgh-brand-ink); }

/* Mobil menü düğmesi */
.vgh__menu-btn {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px;
  border: 0; background: transparent; color: var(--vgh-text); cursor: pointer; transition: color .2s ease;
}
.vgh__menu-btn:hover { color: var(--vgh-hover); }
.vgh__menu-btn svg { width: 24px; height: 24px; }
.vgh__menu-btn .vgh-close { display: none; }
.vgh.is-open .vgh__menu-btn .vgh-open { display: none; }
.vgh.is-open .vgh__menu-btn .vgh-close { display: block; }

@media (max-width: 991.98px) {
  .vgh { --vgh-h: 60px; }
  .vgh__inner { grid-template-columns: 1fr auto; }
  .vgh__menu-btn { display: inline-flex; }
  /* Panel barın altından yukarıdan aşağı kayarak açılır. Kapalıyken görünmez ve
     odaklanılamaz (visibility), kapanma animasyonu bitince gizlenir. */
  .vgh__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 16px 20px; background: #fff;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .08);
    clip-path: inset(0 0 100% 0);
    transform: translateY(-12px);
    visibility: hidden;
    transition: clip-path .32s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .32s;
  }
  .vgh.is-open .vgh__nav {
    clip-path: inset(0 0 -40px 0);
    transform: none;
    visibility: visible;
    transition: clip-path .32s cubic-bezier(.22, 1, .36, 1), transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  .vgh a.vgh__link { height: auto; padding: 14px 4px; font-size: 18px; }
  .vgh-lang__btn { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .vgh *, .vgh *::before, .vgh *::after { transition: none !important; }
}

/* "İçeriğe geç" bağlantısı: yalnızca klavyeyle odaklanınca görünür */
.vgh-skip {
  position: absolute; left: 16px; top: -100px; z-index: 1040;
  padding: 10px 16px; border-radius: 8px; background: #000; color: #fff !important;
  font: 500 15px/1.4 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-decoration: none;
}
.vgh-skip:focus { top: 12px; }

/* Tema (style.css) body'ye overflow-x:hidden veriyor; bu, üst barın sabit kalmasını
   (position: sticky) bozar. clip yatay taşmayı aynı şekilde keser ama kaydırma kabı oluşturmaz. */
@supports (overflow-x: clip) {
  body { overflow-x: clip !important; }
}
/* Tema body'yi ekran yüksekliğine sabitliyor (body,html{height:100%}); sabit üst bar
   body'nin kutusu bitince kayıp gider. Yükseklik içerikle büyüsün, footer yine altta kalsın. */
body { height: auto; min-height: 100%; }
