/* ==========================================================================
   Lebib Yalkın · Üst menü (mega menü)
   Sürüm 2026-11-13 · Tüm seçiciler .lymm ile başlar, sitedeki stillerle çakışmaz.
   Masaüstü ≥ 1200 px · Mobil < 1200 px (çekmece menü)
   ========================================================================== */

.lymm {
  /* Renkler — Lebib Yalkın kurumsal kimlik */
  --lymm-navy: #0E2B54;      /* seçili satır, vurgu, düğmeler */
  --lymm-ink: #13294B;       /* metin */
  --lymm-ink-2: #3D4F66;     /* düz bağlantılar */
  --lymm-muted: #5A6B82;     /* açıklamalar, küçük başlıklar */
  --lymm-border: #D5DDE7;    /* panel kenarı */
  --lymm-line: #E3E8EF;      /* bölücü çizgiler */
  --lymm-hairline: #EEF1F5;  /* bağlantı alt çizgisi */
  --lymm-subtle: #F5F8FB;    /* mobil geri düğmesi zemini */
  --lymm-surface: #FFFFFF;
  --lymm-ai: #9D5FE0;        /* "mevbank AI" logosundaki AI */
  --lymm-focus: #00A3D1;     /* klavye odağı — LY mavi */
  --lymm-scrim: rgba(8, 20, 38, 0.62);
  --lymm-shadow: 0 24px 60px rgba(8, 20, 38, 0.35);

  /* Tipografi */
  --lymm-font: 'Galano Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --lymm-font-wordmark: 'Urbanist', 'Galano Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Ölçüler */
  --lymm-bar-h: 76px;
  --lymm-gutter: max(32px, calc((100vw - 1440px) / 2 + 32px)); /* 1440 px üstünde ortalanır */
  --lymm-panel-w: 782px;      /* tüm menü panelleri aynı genişlikte */
  --lymm-panel-gap: 12px;     /* başlık çubuğu ile panel arası */
  --lymm-z: 1000;

  position: relative;
  z-index: var(--lymm-z);
  font-family: var(--lymm-font);
  color: var(--lymm-ink);
  -webkit-font-smoothing: antialiased;
}
/* Sıfırlamalar :where() ile sıfır özgüllükte tutulur; bileşen sınıfları her zaman kazanır. */
:where(.lymm) *, :where(.lymm) *::before, :where(.lymm) *::after { box-sizing: border-box; }
.lymm [hidden] { display: none !important; }
:where(.lymm) ul { margin: 0; padding: 0; list-style: none; }
:where(.lymm) p, :where(.lymm) h2 { margin: 0; }
:where(.lymm) a { color: inherit; text-decoration: none; }
:where(.lymm) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.lymm) svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lymm :focus-visible { outline: 2px solid var(--lymm-focus); outline-offset: 2px; border-radius: 6px; }
.lymm .lymm-ai { color: var(--lymm-ai); }

/* ---------- Başlık çubuğu ---------- */
.lymm-bar {
  position: relative;
  z-index: 3;
  height: var(--lymm-bar-h);
  padding: 0 var(--lymm-gutter);
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--lymm-surface);
  border-bottom: 1px solid var(--lymm-line);
}
.lymm-logo { flex-shrink: 0; display: flex; align-items: center; }
.lymm-logo img { display: block; height: 42px; width: auto; }

.lymm-nav { height: 100%; }
.lymm-nav__list { height: 100%; display: flex; align-items: stretch; }
.lymm-nav__list > li { display: flex; }
.lymm-nav__trigger {
  height: 100%;
  padding: 3px 9px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--lymm-ink);
  white-space: nowrap;
}
.lymm-nav__trigger .lymm-chev { stroke-width: 2.6; transition: transform 0.15s ease; }
.lymm-nav__trigger[aria-expanded="true"] { color: var(--lymm-navy); border-bottom-color: var(--lymm-navy); }
.lymm-nav__trigger[aria-expanded="true"] .lymm-chev { transform: rotate(180deg); }
.lymm-nav__sep { align-self: center; width: 1px; height: 24px; margin: 0 10px; background: var(--lymm-border); }
.lymm-nav__link {
  height: 100%;
  padding: 0 9px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--lymm-ink-2);
  white-space: nowrap;
}
.lymm-nav__link:hover, .lymm-nav__trigger:hover { color: var(--lymm-navy); }

.lymm-actions { flex-shrink: 0; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lymm-search-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--lymm-ink);
  color: var(--lymm-surface);
}
.lymm-search-btn[aria-expanded="true"] { background: var(--lymm-navy); }
.lymm-login-btn {
  height: 44px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--lymm-ink);
  border-radius: 8px;
  background: var(--lymm-surface);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
}
.lymm-login-btn .lymm-chev { stroke-width: 2.6; transition: transform 0.15s ease; }
.lymm-login-btn[aria-expanded="true"] { background: var(--lymm-ink); color: var(--lymm-surface); }
.lymm-login-btn[aria-expanded="true"] .lymm-chev { transform: rotate(180deg); }
.lymm-burger { display: none; }
.lymm-burger .lymm-ic-close, .lymm-burger[aria-expanded="true"] .lymm-ic-open { display: none; }
.lymm-burger[aria-expanded="true"] .lymm-ic-close { display: block; }

/* ---------- Karartma ve kapatma ---------- */
.lymm-scrim {
  position: fixed;
  inset: var(--lymm-bar-top, var(--lymm-bar-h)) 0 0 0;
  z-index: 1;
  background: var(--lymm-scrim);
}
.lymm-close {
  position: absolute;
  top: calc(var(--lymm-bar-h) + var(--lymm-panel-gap));
  left: calc(var(--lymm-gutter) + var(--lymm-panel-w) + 12px);
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--lymm-border);
  border-radius: 8px;
  background: var(--lymm-surface);
  color: var(--lymm-ink);
}
.lymm-close.is-right { left: auto; right: var(--lymm-gutter); }

/* ---------- Ortak panel kabuğu ---------- */
.lymm-panel, .lymm-search, .lymm-login {
  position: absolute;
  top: calc(var(--lymm-bar-h) + var(--lymm-panel-gap));
  z-index: 2;
  background: var(--lymm-surface);
  border: 1px solid var(--lymm-border);
  border-radius: 12px;
  box-shadow: var(--lymm-shadow);
  max-height: calc(100vh - var(--lymm-bar-h) - 2 * var(--lymm-panel-gap));
  overflow: auto;
  animation: lymm-in 0.12s ease-out;
}
@keyframes lymm-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.lymm-eyebrow {
  padding: 0 14px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lymm-muted);
}

/* ---------- Menü paneli (Ürünler / Hizmetler / Kaynaklar) ---------- */
.lymm-panel {
  left: var(--lymm-gutter);
  width: var(--lymm-panel-w);
  display: flex;
  align-items: stretch;
}
.lymm-panel__side {
  width: 312px;
  flex-shrink: 0;
  padding: 20px 16px;
  border-right: 1px solid var(--lymm-line);
}
.lymm-tabs { display: flex; flex-direction: column; gap: 4px; }
.lymm-tab {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--lymm-ink);
}
.lymm-tab:hover { background: var(--lymm-subtle); }
.lymm-tab[aria-selected="true"] { background: var(--lymm-navy); color: var(--lymm-surface); }
.lymm-tab[aria-selected="true"] .lymm-ai { color: #C9A9F2; } /* lacivert zeminde okunurluk */
.lymm-tab__text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.lymm-tab__label { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lymm-tab__desc { font-size: 13px; line-height: 1.3; color: var(--lymm-muted); }
.lymm-tab[aria-selected="true"] .lymm-tab__desc { color: rgba(255, 255, 255, 0.78); }

.lymm-tp {
  flex-grow: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.lymm-brand { display: block; width: auto; align-self: flex-start; margin-bottom: 12px; }
.lymm-brand--panel[alt="Mevbank Neo"] { height: 20px; }
.lymm-brand--panel[alt="mevUyum"] { height: 23px; }
.lymm-brand--panel[alt^="Lebib Yalkın"] { height: 36px; }
.lymm-wordmark {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--lymm-font-wordmark);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--lymm-navy);
}
.lymm-wordmark--panel { font-size: 28px; margin-bottom: 12px; }
.lymm-wordmark--login { font-size: 24px; }
.lymm-tp__title { margin: 4px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }

.lymm-links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.lymm-links--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lymm-links__item a {
  min-height: 46px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--lymm-hairline);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.lymm-links__item a:hover { color: var(--lymm-navy); text-decoration: underline; text-underline-offset: 3px; }
.lymm-links__heading {
  grid-column: 1 / -1;
  padding: 16px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lymm-muted);
}
.lymm-links__heading:first-child { padding-top: 0; }
.lymm-badge { padding: 2px 8px; border-radius: 999px; background: #EEF2F7; color: var(--lymm-ink-2); font-size: 11px; font-weight: 700; }

.lymm-cta { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.lymm-cta__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lymm-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lymm-cta__link--all { min-height: 44px; }

/* ---------- Arama ---------- */
.lymm-search { right: calc(var(--lymm-gutter) + 56px); width: 520px; padding: 20px; }
.lymm-search form { display: flex; flex-direction: column; gap: 12px; }
.lymm-search__title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.lymm-search__field {
  height: 48px;
  padding: 0 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--lymm-navy);
  border-radius: 8px;
  color: var(--lymm-muted);
}
.lymm-search__field input {
  flex-grow: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--lymm-ink);
}
.lymm-search__field button {
  height: 36px; padding: 0 16px;
  border-radius: 6px;
  background: var(--lymm-navy);
  color: var(--lymm-surface);
  font-size: 14px; font-weight: 700;
}

/* ---------- Giriş listesi ---------- */
.lymm-login { right: var(--lymm-gutter); width: 340px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lymm-login .lymm-eyebrow { padding: 4px 4px 6px; }
.lymm-login__item {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--lymm-line);
  border-radius: 10px;
}
.lymm-login__item:hover { border-color: var(--lymm-navy); }
.lymm-login__text { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.lymm-brand--login { margin: 0; }
.lymm-brand--login[alt="Mevbank Neo"] { height: 17px; }
.lymm-brand--login[alt="mevUyum"] { height: 20px; }
.lymm-login__desc { font-size: 13px; color: var(--lymm-muted); }

/* Çekmece masaüstünde yok */
.lymm-drawer { display: none; }

/* ==========================================================================
   Mobil ve dar ekran (< 1200 px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .lymm { --lymm-bar-h: 64px; }
  .lymm-bar { padding: 0 8px 0 16px; gap: 4px; }
  .lymm-logo { flex-grow: 1; }
  .lymm-logo img { height: 36px; }
  .lymm-nav, .lymm-search-btn, .lymm-login-btn,
  .lymm-panel, .lymm-search, .lymm-login, .lymm-close, .lymm-scrim { display: none !important; }
  .lymm-burger {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--lymm-subtle);
    color: var(--lymm-ink);
  }

  .lymm-drawer {
    position: fixed;
    inset: var(--lymm-bar-top, var(--lymm-bar-h)) 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background: var(--lymm-surface);
  }
  .lymm-drawer[hidden] { display: none !important; }
  .lymm-drawer__body { flex-grow: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .lymm-drawer__foot {
    flex-shrink: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--lymm-line);
    background: var(--lymm-surface);
  }

  .lymm-msearch { padding: 16px; }
  .lymm-msearch__field {
    height: 48px;
    padding: 0 14px;
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid #C5D0DD;
    border-radius: 10px;
    color: var(--lymm-muted);
  }
  .lymm-msearch__field input { flex-grow: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--lymm-ink); }

  .lymm-mmenu { border-top: 1px solid var(--lymm-hairline); }
  .lymm-mrow {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--lymm-hairline);
    font-size: 17px; font-weight: 700;
    text-align: left;
  }
  .lymm-mplain { padding: 8px 20px 16px; }
  .lymm-mplain a { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--lymm-ink-2); }

  .lymm-back {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--lymm-line);
    background: var(--lymm-subtle);
    font-size: 15px; font-weight: 700;
    color: var(--lymm-navy);
    text-align: left;
  }
  .lymm-level__head { padding: 20px 20px 8px; }
  .lymm-level__title { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
  .lymm-level__title:focus { outline: none; }

  .lymm-mgroup {
    width: 100%;
    min-height: 64px;
    padding: 10px 20px;
    display: flex; align-items: center; gap: 14px;
    border-bottom: 1px solid var(--lymm-hairline);
    text-align: left;
  }
  .lymm-mgroup .lymm-tab__label { font-size: 16px; font-weight: 700; }

  .lymm-mlinks { padding: 0 20px; }
  .lymm-mlinks__item a {
    min-height: 48px;
    padding: 8px 0;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--lymm-hairline);
    font-size: 16px; font-weight: 500; line-height: 1.35;
  }
  .lymm-mlinks__heading { padding: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lymm-muted); }
  .lymm-mcta { padding: 8px 20px 24px; display: flex; flex-direction: column; align-items: flex-start; }
  .lymm-mcta__link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--lymm-navy); text-decoration: underline; text-underline-offset: 3px; }

  .lymm-mlogin {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1.5px solid var(--lymm-ink);
    border-radius: 8px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .lymm-mlogin__kicker { font-size: 10px; font-weight: 600; color: var(--lymm-muted); }
  .lymm-mlogin__name { font-size: 14px; font-weight: 700; }
}

/* Sayfa kaydırmasını çekmece açıkken kilitler (JS html öğesine ekler) */
html.lymm-lock, html.lymm-lock body { overflow: hidden; }

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