/* ============================================
   Navigation — bottom bar mobile, top glass desktop
   ============================================ */

/* Mobile default: BOTTOM bar (app-native) */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav__inner {
  max-width: 980px; margin: 0 auto;
  height: 52px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 12px;
}

/* Mobile: hide logo + actions, show links as tab bar */
.nav__logo { display: none; }
.nav__actions { display: none; }

.nav__links {
  display: flex; width: 100%;
  justify-content: space-around; align-items: center;
}

.nav__links a {
  font-size: 11px; font-weight: 500; color: var(--text-3);
  padding: 8px 0; text-align: center;
  transition: color var(--dur);
  flex: 1;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }

/* Language switch */
.lang-switch {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-pill); padding: 2px;
}
.lang-switch__btn {
  padding: 4px 8px; font-size: 11px; font-weight: 600;
  color: var(--text-3); border-radius: var(--radius-pill);
  transition: all var(--dur);
}
.lang-switch__btn.active {
  background: var(--white); color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ===== DESKTOP: top glass bar ===== */
@media (min-width: 769px) {
  .nav {
    top: 0; bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
  }

  .nav__inner {
    height: 48px; justify-content: space-between;
    padding: 0 24px;
  }

  .nav__logo {
    display: block; font-size: 15px; font-weight: 700;
    letter-spacing: 0.08em; flex-shrink: 0;
  }

  .nav__links {
    width: auto; justify-content: center;
    gap: 32px; flex: 1; margin: 0 32px;
  }
  .nav__links a {
    font-size: 12px; font-weight: 400; flex: none;
    color: var(--text-2);
  }

  .nav__actions {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
  }
  .nav__actions .btn--primary { padding: 6px 14px; font-size: 13px; }

  .theme-light .nav {
    background: rgba(255,255,255,0.85);
    border-bottom-color: rgba(0,0,0,0.06);
  }
  .theme-light .nav__logo { color: var(--near-black); }
  .theme-light .nav__links a { color: rgba(0,0,0,0.55); }
  .theme-light .nav__links a:hover { color: var(--near-black); }
  .theme-light .lang-switch { background: rgba(0,0,0,0.06); }
  .theme-light .lang-switch__btn { color: rgba(0,0,0,0.4); }
  .theme-light .lang-switch__btn.active { color: var(--blue); }
}
