/* nav-drawer.css — shared slide-in hamburger drawer for the Bitegit marketing site.
   Menu tree + slide match bitget.com's mobile drawer. "Pulse" is Bitget's own
   type family (same face the Bitegit app ships for numerals). */

@font-face { font-family: 'Pulse'; src: url('/fonts/pulse-regular.ttf') format('truetype');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pulse'; src: url('/fonts/pulse-medium.ttf') format('truetype');   font-weight: 500; font-display: swap; }
@font-face { font-family: 'Pulse'; src: url('/fonts/pulse-semibold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Pulse'; src: url('/fonts/pulse-bold.ttf') format('truetype');     font-weight: 700; font-display: swap; }

:root {
  --ndr-bg: #08090a;            /* Bitget panel bg ~#070808 */
  --ndr-line: rgba(255, 255, 255, 0.08);
  --ndr-text: #f4f5f7;          /* Bitget text #F4F5F7 */
  --ndr-muted: #8e8e92;         /* Bitget muted #8E8E92 */
  --ndr-accent: #00b8d4;        /* Bitegit cyan brand accent */
}

.ndr-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* belt-and-suspenders: don't rely on visibility alone to stop this
                            full-viewport layer from eating scroll/tap while closed */
  /* Bitget's measured drawer mask: fades with the panel — all 0.3s ease */
  transition: opacity 0.36s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.36s cubic-bezier(0.32, 0.72, 0, 1);
}

.ndr-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.ndr-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: min(375px, 100vw);   /* Bitget: 375px panel, max-width 100% */
  height: 100dvh;
  max-height: 100dvh;
  background: var(--ndr-bg);
  border-left: 1px solid var(--ndr-line);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.55);
  transform: translate3d(100%, 0, 0);
  /* Bitget's own curve is a plain .3s ease — a touch abrupt. This eased-out
     bezier keeps the same speed but lands softer. */
  transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-family: 'Pulse', 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ndr-text);
}

.ndr-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

/* header */
.ndr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--ndr-line);
  position: sticky;
  top: 0;
  background: var(--ndr-bg);
  z-index: 1;
}

.ndr-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.ndr-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  background: #000;
}

.ndr-brand span {
  color: #00ffff;
  font-size: 1.12rem;
  font-weight: 700;
}

.ndr-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ndr-line);
  border-radius: 8px;
  background: transparent;
  color: var(--ndr-text);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.ndr-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* auth card — guest-only bordered promo panel at the top of the drawer */
.ndr-auth-card {
  margin: 0.75rem 1.1rem 0.4rem;
  padding: 0.9rem 1rem;
  border: none;
  background: none;
}

.ndr-auth-copy {
  margin: 0 0 0.7rem;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ndr-text);
}

.ndr-auth-copy strong { color: var(--ndr-accent); font-weight: 700; }

.ndr-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ndr-login-btn,
.ndr-signup-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

/* Matches Bitget's real drawer: Log in is a dim/neutral filled button,
   Sign up is solid white — neither uses the site's cyan accent here. */
.ndr-login-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ndr-text);
  background: rgba(255, 255, 255, 0.08);
}

.ndr-signup-btn {
  border: none;
  color: #0b0e11;
  background: #ffffff;
}

/* link groups */
.ndr-nav {
  flex: 1;
  padding: 0.5rem 0.6rem 1rem;
}

/* Bitget's mobile menu rows have no dividers; keep the footer block ruled. */
.ndr-foot .ndr-group { border-top: 1px solid var(--ndr-line); }
.ndr-foot .ndr-group:first-child { border-top: 0; }

/* accordion header (Bitcovex-style expandable section) */
.ndr-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 53px;
  padding: 12px 4px;
  border: 0;
  background: transparent !important;   /* never tint on tap / focus */
  color: var(--ndr-text);
  font-family: inherit;
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}
.ndr-group-head:focus { outline: none; }
.ndr-group-head:focus-visible { background: rgba(255, 255, 255, 0.05); border-radius: 8px; }

.ndr-chev { color: var(--ndr-muted); transition: transform 0.22s ease; flex-shrink: 0; }
.ndr-group.is-expanded .ndr-chev { transform: rotate(180deg); }

.ndr-group-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

/* plain link row that shows a right chevron (navigates, no accordion) */
.ndr-item-arrow {
  justify-content: space-between;
}
.ndr-chev-r {
  color: var(--ndr-muted);
  flex-shrink: 0;
}

.ndr-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 53px;
  padding: 12px 4px;
  border-radius: 9px;
  color: var(--ndr-text);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  text-decoration: none;
}

/* promo strip (2026 KCGI / GetAgent / Notifications) — same rows, subtle top rule */
.ndr-promo { border-top: 1px solid var(--ndr-line); margin-top: 4px; padding-top: 4px; }

/* footer link block (About / Products / Support / Legal) — Bitget renders these
   group headers at the SAME size as the top-level nav rows, not smaller. */
.ndr-foot { flex: 0 0 auto; padding-top: 0; }
.ndr-foot .ndr-group-head { font-size: 17px; line-height: 28px; color: var(--ndr-text); }
.ndr-foot .ndr-group-head .ndr-chev { color: var(--ndr-muted); }
.ndr-foot .ndr-group-body a { font-size: 15px; line-height: 17px; }

.ndr-nav a:hover,
.ndr-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ndr-accent);
  outline: none;
}

.ndr-group-body a {
  padding-left: 1.35rem;
  font-weight: 400;
  font-size: 15px;
  line-height: 17px;
  color: #c7d0e0;
  min-height: 38px;
}

@media (prefers-reduced-motion: reduce) {
  .ndr-chev, .ndr-group-body { transition: none; }
}

/* language / currency row */
.ndr-locale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0.6rem 0;
  padding: 0.7rem 0.6rem;
  border-top: 1px solid var(--ndr-line);
  color: var(--ndr-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.ndr-locale svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* app download card */
.ndr-appcard {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 1.1rem 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ndr-line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 184, 212, 0.12), rgba(0, 184, 212, 0.03));
  text-decoration: none;
  color: var(--ndr-text);
}

.ndr-appcard img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
  background: #000;
  flex-shrink: 0;
}

.ndr-appcard .ndr-appcard-t {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.ndr-appcard .ndr-appcard-s {
  display: block;
  font-size: 0.78rem;
  color: var(--ndr-muted);
  margin-top: 2px;
}

.ndr-appcard .ndr-appcard-btn {
  margin-left: auto;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--ndr-accent);
  color: #001015;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

body.ndr-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ndr-drawer,
  .ndr-overlay {
    transition: none;
  }
}
