/* ══════════════════════════════════════════════════════
   nav-menu.css — paper aesthetic dropdown
   Matches startup-screen.css + main-screen.css palette
   ══════════════════════════════════════════════════════ */

.main-menu-dropdown { position: relative; }

.main-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: #fffaf0;
  border: 1px solid rgba(26, 20, 16, 0.16);
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(26,20,16,0.06),
    0 20px 48px -12px rgba(26,20,16,0.18);
  padding: 8px;
  list-style: none;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity  0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s;
}

.main-menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Section divider — matches paper line style */
.mmenu-divider {
  height: 1px;
  background: rgba(26, 20, 16, 0.10);
  margin: 5px 6px;
  list-style: none;
}

/* Base item */
.mmenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: "Ubuntu", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #4a3f37;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  letter-spacing: 0.005em;
}
.mmenu-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.mmenu-item:hover {
  background: rgba(244, 234, 214, 0.9);
  color: #1a1410;
}

/* Login — neutral first item with a subtle paper tint */
.mmenu-item--login {
  font-weight: 600;
  color: var(--ink);
  background: rgba(26, 20, 16, 0.04);
}
.mmenu-item--login:hover {
  background: rgba(26, 20, 16, 0.08);
  color: var(--ink);
}

/* Signed-in state — the inline scripts on each page swap the item
   to "Sign out" and remove the `href`. We use that absence as a CSS
   hook to switch the styling to a clear destructive red so it visually
   matches the weight of the action across every page. */
.mmenu-item--login:not([href]) {
  color: var(--accent-2);
  background: rgba(214, 83, 60, 0.08);
}
.mmenu-item--login:not([href]):hover {
  color: #fff;
  background: var(--accent-2);
}
.mmenu-item--login:not([href]) svg { color: currentColor; }

/* Book a session — sage accent */
.mmenu-item--session {
  font-weight: 500;
  color: #6d8268;
}
.mmenu-item--session:hover {
  background: rgba(109, 130, 104, 0.10);
  color: #4d5e4a;
}

/* ══════════════════════════════════════════════════════
   Active page indicator
   When a nav link has aria-current="page" (the page we're
   currently on), show a small red dot at the top-right
   and tint the icon + label slightly.
   ══════════════════════════════════════════════════════ */
.nav-link[aria-current="page"] {
  position: relative;
  color: var(--accent-2, #d6533c);
}
.nav-link[aria-current="page"] .icon { color: var(--accent-2, #d6533c); }
.nav-link[aria-current="page"] span { color: var(--accent-2, #d6533c); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2, #d6533c);
  box-shadow: 0 0 0 2px var(--paper, #f4ead6);
  animation: navDotPulse 2.2s ease-in-out infinite;
}
@keyframes navDotPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.85; }
}
