/*
  Component — Top Navigation Bar
  ────────────────────────────────
  IA: Profile Icon (left) | Notification + Search (right)
  Full-width bar; inner .container constrains content width.
*/

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
}

.top-nav__inner {
  height: var(--top-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Profile button ──────────────────────────────── */
.top-nav__profile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.60);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.top-nav__profile:active {
  background: rgba(255, 255, 255, 0.85);
}

.top-nav__profile-initial {
  color: var(--color-brand-blue-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  user-select: none;
}

/* ── Right-side action buttons ───────────────────── */
.top-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.top-nav__icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  position: relative;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.15s;
}

.top-nav__icon-btn:active {
  background: rgba(255, 255, 255, 0.72);
}

.top-nav__icon-btn img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

/* ── Notification badge ──────────────────────────── */
.top-nav__badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--color-brand-orange);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--bg-base);
  pointer-events: none;
}
