/* Shared top navigation across the free hub (/) and the paid courses
   (/courses/). One bar so the two areas read as one product. Uses the
   css/variables.css design tokens. The account widget (from js/auth.js)
   mounts into [data-account-mount]. */

.app-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.app-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: 8px;
}
.app-nav-brand img { height: 30px; width: auto; display: block; }

.app-tabs { display: flex; align-items: center; gap: 4px; }
.app-tab {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.app-tab:hover { color: var(--text); background: var(--border-light); }
.app-tab.is-active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* The account widget container is pushed to the right. js/auth.js appends
   the .learn-auth-account pill here. */
[data-account-mount] { margin-left: auto; display: flex; align-items: center; min-height: 34px; }

@media (max-width: 560px) {
  .app-nav { padding: 8px 14px; }
  .app-nav-brand span { display: none; }
  .app-tab { padding: 7px 11px; }
}
