/* ================================================================
   TRANSAY — NAVBAR CSS (Açık Tema)
   Dosya: wwwroot/assets/css/navbar.css

   _LayoutHeader.cshtml içine ekle:
     <link href="~/assets/css/navbar.css" rel="stylesheet">

   Site renk sistemiyle tam uyumlu:
     --nav-color: #01133c
     --nav-hover-color: #04415f
     --accent-color: #04415f
     --nav-dropdown-background-color: #ffffff
   ================================================================ */

:root {
  --tnv-h: 60px;
  --tnv-top-h: 36px;
  --tnv-total: calc(var(--tnv-h) + var(--tnv-top-h));
  --tnv-top-bg: #1a1d24;
  --tnv-bg: #ffffff;
  --tnv-bg-top: rgba(255,255,255,0.95);
  --tnv-border: #dce8ef;
  --tnv-shadow: 0 2px 24px rgba(1,19,60,0.09);

  /* Site nav değişkenleriyle uyumlu */
  --tnv-link: #01133c;          /* --nav-color */
  --tnv-link-hover: #04415f;    /* --nav-hover-color */
  --tnv-drop-text: #010608;     /* --nav-dropdown-color */
  --tnv-drop-hover: #04415f;    /* --nav-dropdown-hover-color */
  --tnv-drop-hover-bg: #f1f5f7; /* --background-color */
  --tnv-accent: #04415f;        /* --accent-color */
  --tnv-navy: #01133c;
  --tnv-sky: #2086b8;
  --tnv-sky-lt: #64bfed;

  --tnv-font: 'Poppins', sans-serif;   /* --nav-font */
  --tnv-disp: 'Raleway', sans-serif;   /* --heading-font */
}

/* ────────────────────────────────────────
   BODY PAD
──────────────────────────────────────── */
body {
  padding-top: calc(var(--tnv-h) + var(--tnv-top-h)) !important;
}

/* ────────────────────────────────────────
   HEADER
──────────────────────────────────────── */
#tnv {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  background: var(--tnv-bg-top);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  z-index: 9999;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1),
              background 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

#tnv.tnv-scrolled {
  background: var(--tnv-bg);
  border-bottom-color: var(--tnv-border);
  box-shadow: var(--tnv-shadow);
}

#tnv.tnv-hidden { transform: translateY(-100%); }

/* ────────────────────────────────────────
   CONTAINER
──────────────────────────────────────── */
.tnv-wrap {
  display: flex; align-items: center;
  height: var(--tnv-h); max-width: 1440px;
  margin: 0 auto; padding: 0 28px;
}

/* ────────────────────────────────────────
   LOGO
──────────────────────────────────────── */
.tnv-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0; margin-right: 36px;
}
.tnv-logo img {
  height: 34px; width: auto; display: block;
  filter: none !important; box-shadow: none !important;
}

/* ────────────────────────────────────────
   NAV LIST
──────────────────────────────────────── */
.tnv-nav { flex: 1; display: flex; align-items: center; }

.tnv-list {
  display: flex; align-items: stretch; list-style: none;
  height: var(--tnv-h); margin: 0; padding: 0;
}

.tnv-list > li { position: static; display: flex; align-items: stretch; }

.tnv-list > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; color: var(--tnv-link); text-decoration: none;
  font-family: var(--tnv-font); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.01em; white-space: nowrap; position: relative;
  transition: color 0.2s ease;
}

/* Animasyonlu alt çizgi */
.tnv-list > li > a::after {
  content: ''; position: absolute; bottom: 14px; left: 14px; right: 14px;
  height: 2px; background: var(--tnv-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.tnv-list > li > a:hover                { color: var(--tnv-link-hover); }
.tnv-list > li > a:hover::after,
.tnv-list > li.tnv-open > a::after,
.tnv-list > li.tnv-active > a::after    { transform: scaleX(1); }
.tnv-list > li.tnv-open > a,
.tnv-list > li.tnv-active > a           { color: var(--tnv-accent); }

.tnv-chev {
  display: inline-flex; align-items: center;
  width: 14px; height: 14px; opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.2s;
}
.tnv-list > li.tnv-open .tnv-chev { transform: rotate(180deg); opacity: 0.9; }

/* "PLATFORM" canlı badge */
.tnv-live-dot {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px;
  background: rgba(4,65,95,0.08); border: 1px solid rgba(4,65,95,0.2);
  border-radius: 20px; font-size: 10px; font-weight: 700;
  color: var(--tnv-accent); letter-spacing: 0.05em;
}
.tnv-live-dot::before {
  content: ''; width: 5px; height: 5px;
  background: var(--tnv-sky); border-radius: 50%;
  animation: tnv-pulse 1.8s ease infinite;
}
@keyframes tnv-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.65); opacity: 0.4; }
}

/* ────────────────────────────────────────
   SAĞ BUTONLAR
──────────────────────────────────────── */
.tnv-right { display: flex; align-items: center; gap: 10px; margin-left: 16px; flex-shrink: 0; }

.tnv-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 16px; height: 36px;
  color: var(--tnv-navy); text-decoration: none;
  font-family: var(--tnv-font); font-size: 12.5px; font-weight: 500;
  border: 1.5px solid #c4d4de; border-radius: 7px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tnv-login:hover {
  color: var(--tnv-accent); border-color: var(--tnv-accent);
  background: rgba(4,65,95,0.04); text-decoration: none;
}

.tnv-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 20px; height: 36px;
  background: var(--tnv-accent); color: #fff; text-decoration: none;
  font-family: var(--tnv-font); font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; border-radius: 7px;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.tnv-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(255,255,255,0.15) 0%,transparent 60%);
  opacity: 0; transition: opacity 0.2s;
}
.tnv-cta:hover {
  background: #055678; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4,65,95,0.35);
  color: #fff; text-decoration: none;
}
.tnv-cta:hover::before { opacity: 1; }

/* ────────────────────────────────────────
   REGULAR DROPDOWN (ikonsuz)
──────────────────────────────────────── */
.tnv-drop {
  position: fixed; top: var(--tnv-total); min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--tnv-border); border-top: 2.5px solid var(--tnv-accent);
  border-radius: 0 0 10px 10px; padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 12px 40px rgba(1,19,60,0.12); z-index: 9998;
}

.tnv-list > li.tnv-open .tnv-drop {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.tnv-drop a {
  display: block; padding: 10px 20px;
  color: var(--tnv-drop-text); text-decoration: none;
  font-family: var(--tnv-font); font-size: 13.5px; font-weight: 400;
  position: relative;
  transition: color 0.15s, background 0.15s, padding-left 0.18s;
}
.tnv-drop a::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 2.5px; background: var(--tnv-accent); border-radius: 0 2px 2px 0;
  transform: scaleY(0); transition: transform 0.18s ease;
}
.tnv-drop a:hover {
  color: var(--tnv-drop-hover);
  background: var(--tnv-drop-hover-bg);
  padding-left: 24px; text-decoration: none;
}
.tnv-drop a:hover::before { transform: scaleY(1); }

.tnv-drop-sep { height: 1px; background: #e8eff3; margin: 5px 0; }

/* ────────────────────────────────────────
   MEGA MENU
──────────────────────────────────────── */
.tnv-mega {
  position: fixed; top: var(--tnv-total);
  left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(1260px, calc(100vw - 48px));
  background: #ffffff;
  border: 1px solid var(--tnv-border); border-top: 2.5px solid var(--tnv-accent);
  border-radius: 0 0 14px 14px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 20px 60px rgba(1,19,60,0.14); z-index: 9998;
}

.tnv-list > li.tnv-open .tnv-mega {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}

.tnv-mega-body { display: grid; grid-template-columns: 280px 1fr 260px; }

/* Sol: lacivert panel */
.tnv-mega-left {
  background: linear-gradient(155deg, #01133c 0%, #032a4a 100%);
  padding: 30px 26px 26px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.tnv-mega-left::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07); right: -90px; bottom: -90px; pointer-events: none;
}
.tnv-mega-left-ring2 {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05); right: -40px; bottom: -40px; pointer-events: none;
}

.tnv-mega-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  background: rgba(32,134,184,0.2); border: 1px solid rgba(32,134,184,0.35);
  border-radius: 20px; color: var(--tnv-sky-lt);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; width: fit-content;
}

.tnv-mega-title {
  font-family: var(--tnv-disp); font-size: 19px; font-weight: 700; color: #fff; line-height: 1.35;
}
.tnv-mega-title em { font-style: normal; color: var(--tnv-sky-lt); }

.tnv-mega-desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.75; }

.tnv-mega-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }

.tnv-mega-stat {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px; padding: 9px 6px; text-align: center;
}
.tnv-mega-stat strong {
  display: block; font-family: var(--tnv-disp); font-size: 14px; font-weight: 700;
  color: var(--tnv-sky-lt); line-height: 1; margin-bottom: 3px;
}
.tnv-mega-stat span { font-size: 10px; color: rgba(255,255,255,0.4); }

.tnv-mega-feat-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--tnv-sky-lt);
  text-decoration: none; font-size: 12.5px; font-weight: 600; transition: gap 0.2s; margin-top: auto;
}
.tnv-mega-feat-link:hover { gap: 12px; color: var(--tnv-sky-lt); text-decoration: none; }
.tnv-mega-feat-link svg { transition: transform 0.2s; }
.tnv-mega-feat-link:hover svg { transform: translateX(3px); }

/* Sol panel animasyonları */
.tnv-mega-badge,.tnv-mega-title,.tnv-mega-desc,.tnv-mega-stats,.tnv-mega-feat-link {
  opacity: 0; transform: translateX(-12px); transition: opacity 0.28s ease, transform 0.28s ease;
}
.tnv-list > li.tnv-open .tnv-mega-badge     { opacity:1; transform:none; transition-delay:0.04s; }
.tnv-list > li.tnv-open .tnv-mega-title     { opacity:1; transform:none; transition-delay:0.07s; }
.tnv-list > li.tnv-open .tnv-mega-desc      { opacity:1; transform:none; transition-delay:0.10s; }
.tnv-list > li.tnv-open .tnv-mega-stats     { opacity:1; transform:none; transition-delay:0.13s; }
.tnv-list > li.tnv-open .tnv-mega-feat-link { opacity:1; transform:none; transition-delay:0.16s; }

.tnv-mega-mid {
  padding: 26px 22px 22px 26px;
  border-left: 1px solid var(--tnv-border);
  border-right: 1px solid var(--tnv-border);
  position: relative;  
}

.tnv-mega-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9aaab6; margin-bottom: 14px; padding-left: 2px;
}

.tnv-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 12px; }

.tnv-prod {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 12px; border-radius: 8px; text-decoration: none;
  border: 1px solid transparent;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s, border-color 0.18s;
}
.tnv-list > li.tnv-open .tnv-prod { opacity:1; transform:none; }
.tnv-prod:nth-child(1){transition-delay:0.06s} .tnv-prod:nth-child(2){transition-delay:0.09s}
.tnv-prod:nth-child(3){transition-delay:0.12s} .tnv-prod:nth-child(4){transition-delay:0.15s}

.tnv-prod:hover { background: #f1f5f7; border-color: #dce8ef; text-decoration: none; }

.tnv-prod-ico {
  width: 36px; height: 36px;
  background: rgba(4,65,95,0.07); border: 1px solid rgba(4,65,95,0.13);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.18s, border-color 0.18s;
}
.tnv-prod:hover .tnv-prod-ico { background: rgba(4,65,95,0.13); border-color: rgba(4,65,95,0.25); }
.tnv-prod-ico svg { stroke: var(--tnv-accent); }

.tnv-prod-name {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--tnv-navy);
  line-height: 1.3; margin-bottom: 2px; transition: color 0.15s;
}
.tnv-prod:hover .tnv-prod-name { color: var(--tnv-accent); }
.tnv-prod-sub { display: block; font-size: 11px; color: #8a9eb0; line-height: 1.4; }

/* DSM / ADAS */
.tnv-sub-row {
  display: flex; gap: 6px; border-top: 1px solid #e8eff3; padding-top: 10px; margin-top: 4px;
  margin-bottom: 1.3%;  
}
.tnv-sub {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #f8fafc; border: 1px solid #e4ecf2;
  border-radius: 8px; text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.15s, border-color 0.15s;
}
.tnv-list > li.tnv-open .tnv-sub { opacity:1; transform:none; }
.tnv-sub:nth-child(1){transition-delay:0.19s} .tnv-sub:nth-child(2){transition-delay:0.22s}
.tnv-sub:hover { background: rgba(4,65,95,0.06); border-color: rgba(4,65,95,0.2); text-decoration: none; }
.tnv-sub-dot { width: 6px; height: 6px; background: var(--tnv-accent); border-radius: 50%; flex-shrink: 0; }
.tnv-sub-txt { flex: 1; font-size: 12px; font-weight: 500; color: #4a6070; transition: color 0.15s; }
.tnv-sub:hover .tnv-sub-txt { color: var(--tnv-accent); }
.tnv-sub-tag { font-size: 10px; font-weight: 700; color: var(--tnv-sky); background: rgba(32,134,184,0.1); padding: 2px 7px; border-radius: 4px; }

/* ────────────────────────────────────────
   PREVIEW ZONE
   Sabit boyut — mega menü yüksekliğini ETKİLEMEZ
   Yalnızca 6 modülden birine hover gelince görünür
──────────────────────────────────────── */
.tnv-preview-zone {
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
  border: 1px solid var(--tnv-border);
  width: 65%;
  aspect-ratio: 3 / 1.2;
  position: absolute;       /* normal akıştan çık */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10; 
}

.tnv-preview-zone.tnv-preview-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Görsel katmanları — üst üste, fade geçiş */
.tnv-preview-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

/* Aktif görsel */
.tnv-preview-img.tnv-preview-active { opacity: 1; }

/* Görsel kutusunun üstüne hafif gradient */
.tnv-preview-zone::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1,19,60,0.12) 0%, transparent 50%);
  pointer-events: none; z-index: 2;
}

/* Sağ panel */
.tnv-mega-right {
  padding: 26px 18px 22px 20px; background: #f8fafc; border-left: 1px solid var(--tnv-border);
}
.tnv-reports-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.tnv-reports-all { font-size: 11px; color: var(--tnv-sky); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.tnv-reports-all:hover { color: var(--tnv-accent); }
.tnv-report-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.tnv-rpt { opacity: 0; transform: translateX(8px); transition: opacity 0.22s ease, transform 0.22s ease; }
.tnv-list > li.tnv-open .tnv-rpt { opacity:1; transform:none; }
.tnv-rpt:nth-child(1){transition-delay:0.06s} .tnv-rpt:nth-child(2){transition-delay:0.09s}
.tnv-rpt:nth-child(3){transition-delay:0.12s} .tnv-rpt:nth-child(4){transition-delay:0.15s}
.tnv-rpt:nth-child(5){transition-delay:0.18s} .tnv-rpt:nth-child(6){transition-delay:0.21s}
.tnv-rpt:nth-child(7){transition-delay:0.24s} .tnv-rpt:nth-child(8){transition-delay:0.27s}

.tnv-rpt a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 7px; text-decoration: none; transition: background 0.15s; }
.tnv-rpt a:hover { background: #edf2f6; }
.tnv-rpt-ico { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: rgba(4,65,95,0.07); flex-shrink: 0; transition: background 0.15s; }
.tnv-rpt a:hover .tnv-rpt-ico { background: rgba(4,65,95,0.14); }
.tnv-rpt-ico svg { stroke: var(--tnv-accent); }
.tnv-rpt-name { font-size: 12.5px; color: #3a5060; font-weight: 400; transition: color 0.15s; }
.tnv-rpt a:hover .tnv-rpt-name { color: var(--tnv-accent); }

/* Mega footer */
.tnv-mega-foot { border-top: 1px solid var(--tnv-border); padding: 11px 26px; display: flex; align-items: center; gap: 20px; background: #f8fafc; }
.tnv-mega-foot-label { font-size: 11.5px; color: #8a9eb0; }
.tnv-mega-foot-links { display: flex; gap: 18px; }
.tnv-mega-foot-links a { font-size: 12px; color: #5a7a8a; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.tnv-mega-foot-links a:hover { color: var(--tnv-accent); }
.tnv-mega-foot-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 16px; background: var(--tnv-accent); border-radius: 7px;
  color: #fff; text-decoration: none; font-size: 12px; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.tnv-mega-foot-cta:hover { background: #055678; transform: translateY(-1px); color: #fff; text-decoration: none; }

/* ────────────────────────────────────────
   MOBİL
──────────────────────────────────────── */
.tnv-mob-btn { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--tnv-navy); margin-left: auto; }

.tnv-mob-nav {
    display: none;
    position: fixed;
    top: var(--tnv-total);
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--tnv-border);
    max-height: calc(100vh - var(--tnv-total));
    overflow-y: auto;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    box-shadow: 0 8px 32px rgba(1,19,60,0.1);
}

    .tnv-mob-nav.tnv-mob-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
.tnv-mob-section { padding: 6px 0; border-bottom: 1px solid #edf2f5; }
.tnv-mob-head { padding: 8px 22px 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ab0bb; }
.tnv-mob-nav a { display: block; padding: 10px 22px; color: #2a4050; text-decoration: none; font-size: 13.5px; transition: color 0.15s, background 0.15s; }
.tnv-mob-nav a:hover { color: var(--tnv-accent); background: #f5f9fb; }
.tnv-mob-nav a.tnv-mob-sub { padding-left: 36px; font-size: 12.5px; color: #6a8090; }
.tnv-mob-cta { padding: 14px 22px; }
.tnv-mob-cta a { display: block; text-align: center; padding: 11px; background: var(--tnv-accent); color: #fff !important; border-radius: 8px; font-weight: 600; font-size: 14px; }

/* ────────────────────────────────────────
   RESPONSIVE
──────────────────────────────────────── */
@media (max-width: 1100px) {
  .tnv-mega-body { grid-template-columns: 240px 1fr 220px; }
  .tnv-mega-title { font-size: 17px; }
  .tnv-preview-zone { display: none !important; }
}

@media (max-width: 900px) {
    .tnv-nav {
        display: none;
    }

    .tnv-right {
        display: none;
    }

    .tnv-mob-btn {
        display: flex;
        align-items: center;
    }

    .tnv-mob-nav {
        display: block;
    }

    .tnv-preview-zone {
        display: none !important;
    }

    .tnv-wrap {
        position: relative;
        z-index: 10000;
    }
}

@media (max-width: 900px) {
    .tnv-mob-nav:not(.tnv-mob-open) a,
    .tnv-mob-nav:not(.tnv-mob-open) button {
        pointer-events: none !important;
    }
}

@media (max-width: 900px) {
    html.tnv-scroll-lock,
    body.tnv-scroll-lock {
        overflow: hidden !important;
        height: 100dvh !important;
    }

    body.tnv-scroll-lock {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        top: calc(var(--tnv-lock-offset, 0px) * -1);
    }

    #tnv {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10001;
    }

    .tnv-mob-nav {
        top: var(--tnv-total);
        height: calc(100dvh - var(--tnv-total));
        max-height: calc(100dvh - var(--tnv-total));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

@media (max-width: 900px) {
    html.mobile-nav-lock,
    body.mobile-nav-lock {
        overflow: hidden !important;
        height: 100dvh !important;
    }

    body.mobile-nav-lock {
        overscroll-behavior: none;
        touch-action: none;
    }

    .tnv-mob-nav,
    .mobile-nav-active #navmenu {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* ================================================================
   ÜST ŞERİT (collapsible top bar) — scroll davranışı
================================================================ */
.tnv-top {
  background: var(--tnv-top-bg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  max-height: var(--tnv-top-h);
  transition: max-height .35s ease, opacity .25s ease, border-color .25s ease;
}
.tnv-top-wrap {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--tnv-top-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #c9ccd3;
  font-family: var(--tnv-font);
}
.tnv-top-left, .tnv-top-right { display: flex; align-items: center; gap: 22px; }
.tnv-top-item {
  display: inline-flex; align-items: center; gap: 7px;
  color: #c9ccd3; text-decoration: none;
  letter-spacing: .2px;
  transition: color .2s;
  white-space: nowrap;
}
.tnv-top-item:hover { color: #fff; }
.tnv-top-item svg { opacity: .7; flex-shrink: 0; }
.tnv-top-login { color: #fff; font-weight: 500; }
.tnv-top-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.12);
}

/* SCROLL: sadece üst şerit kapanır, alt sekme barı kalır */
#tnv.tnv-collapsed .tnv-top {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

/* Eski "tamamen gizle" davranışını iptal et — navbar asla kaybolmaz */
#tnv.tnv-hidden { transform: none !important; }

@media (max-width: 980px) {
  .tnv-top { display: none; }
  body { padding-top: var(--tnv-h) !important; }
  .tnv-mob-nav { top: var(--tnv-h); max-height: calc(100vh - var(--tnv-h)); }
}

/* Dropdown ve mega menüler — üst şerit kapalıyken yukarı kayar */
#tnv.tnv-collapsed .tnv-drop,
#tnv.tnv-collapsed .tnv-mega {
  top: var(--tnv-h);
}
#tnv.tnv-collapsed .tnv-top { transition: max-height .35s ease, opacity .25s ease; }
.tnv-drop, .tnv-mega { transition: top .35s ease, opacity 0.22s ease, transform 0.22s cubic-bezier(0.4,0,0.2,1); }
