/* ================= ÜST NAV BAR — CİHAZ ŞASİSİ ================= */
.site-nav {
  background: linear-gradient(180deg, #45474e, #34363b) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
}

/* LOGO — AÇIK "EKRAN" PLAKASI, footer-plate ile aynı dil */
.nav-logo-plate {
  background: linear-gradient(to bottom, #fafaf9, #f1f0ee) !important;
  border-radius: 14px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Mobil çip-toggle artık koyu bar üstünde — ayrışması için ince ring */
.chip-toggle {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* MOBİL ÇİP-TOGGLE BUTONU */
.chip-toggle {
  transition: background-color 0.2s ease;
}
.chip-toggle .chip-bar {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.28s ease,
    opacity 0.2s ease,
    fill 0.2s ease;
}
.chip-toggle.is-open .chip-bar-top {
  transform: translateY(2.9px) rotate(45deg);
  fill: #fff;
}
.chip-toggle.is-open .chip-bar-bottom {
  transform: translateY(-2.9px) rotate(-45deg);
  fill: #fff;
}
.chip-toggle.is-open .chip-bar-mid {
  opacity: 0;
}

.chip-led {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #5b5c60 !important;
  transition: background 0.2s ease;
}
.chip-toggle.is-open .chip-led {
  background: #e5231b !important;
  animation: ledPulse 1.4s ease-in-out infinite;
}
@keyframes ledPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(229, 35, 27, 0.55);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(229, 35, 27, 0);
  }
}

/* ================= MOBİL MENÜ — CİHAZ TUŞ TAKIMI ================= */
.mobile-menu {
  transform-origin: top;
}
.mobile-menu:not(.hidden) {
  animation: panelDrop 0.26s ease-out;
}
@keyframes panelDrop {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.mobile-panel {
  background: linear-gradient(165deg, #454750, #232427) !important;
  padding: 22px 20px 24px;
  border-radius: 0 0 26px 26px;
  box-shadow: 0 18px 34px rgba(35, 36, 39, 0.3);
}

.mobile-panel-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.mobile-panel-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #e5231b !important;
}
.mobile-panel-label .label-text {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #9a9ba0 !important;
  text-transform: uppercase;
}

.mkey {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, #4d4f56, #34363b) !important;
  color: #e6e7e9 !important;
  font-weight: 600;
  font-size: 16.5px;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -2px 2px rgba(0, 0, 0, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.45),
    0 4px 6px rgba(0, 0, 0, 0.22);
  transform: translateY(0);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease;
}
.mkey:last-of-type {
  margin-bottom: 0;
}
.mkey-idx {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #e5231b !important;
  opacity: 0.75;
  width: 26px;
  flex-shrink: 0;
}
.mkey-chevron {
  margin-left: auto;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.3) !important;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}
.mkey:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
}
.mkey:active .mkey-chevron {
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.6) !important;
}

.mkey-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 19px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e5231b, #b81810) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 16.5px;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 2px rgba(0, 0, 0, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 0 18px rgba(229, 35, 27, 0.45);
  transform: translateY(0);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.mkey-cta:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
}
.mkey-cta .dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #fff !important;
  animation: ctaPulse 1.8s ease-in-out infinite;
}

/* ================= MASAÜSTÜ NAV — CİHAZ KLAVYESİ ================= */
.nav-chip {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 9px;
  background: linear-gradient(160deg, #454750, #232427) !important;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -3px 6px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 14px 24px;
  border-radius: 13px;
  background: linear-gradient(180deg, #48494f, #2f3136) !important;
  color: #d7d8db !important;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -2px 2px rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 4px 6px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.nav-pin-idx {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: #9a9ba0 !important;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}

.nav-pin:hover {
  background: linear-gradient(180deg, #57595f, #3a3c41) !important;
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 2px rgba(0, 0, 0, 0.3),
    0 3.5px 0 rgba(0, 0, 0, 0.45),
    0 7px 10px rgba(0, 0, 0, 0.3);
}
.nav-pin:hover .nav-pin-idx {
  color: #e5231b !important;
}

.nav-pin:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.4),
    0 0px 0 rgba(0, 0, 0, 0.45);
}

/* AKTİF SAYFA — Context.Request.Path eşleşince partial otomatik ekler */
.nav-pin.is-active {
  background: linear-gradient(180deg, #e5231b, #b81810) !important;
  color: #ffffff !important;
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -2px 2px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 0 16px rgba(229, 35, 27, 0.55);
  animation: keyGlow 2.2s ease-in-out infinite;
}
.nav-pin.is-active span {
  color: #ffffff !important;
}
.nav-pin.is-active .nav-pin-idx {
  color: rgba(255, 255, 255, 0.85) !important;
}
@keyframes keyGlow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      inset 0 -2px 2px rgba(0, 0, 0, 0.25),
      0 1px 0 rgba(0, 0, 0, 0.4),
      0 0 16px rgba(229, 35, 27, 0.55);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      inset 0 -2px 2px rgba(0, 0, 0, 0.25),
      0 1px 0 rgba(0, 0, 0, 0.4),
      0 0 24px rgba(229, 35, 27, 0.8);
  }
}

/* ================= NAV CTA — "SİPARİŞ" ================= */
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px 13px 34px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #e5231b, #b81810) !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 10px rgba(229, 35, 27, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.nav-cta:hover {
  background: linear-gradient(180deg, #f22a21, #c61e15) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(229, 35, 27, 0.38);
}
.nav-cta:visited,
.nav-cta:focus {
  color: #ffffff !important;
}
.nav-cta:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.25),
    0 3px 6px rgba(229, 35, 27, 0.28);
}
.nav-cta::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #fff !important;
  transform: translateY(-50%);
  animation: ctaPulse 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
  }
}
