/* 
  ========================================================================
  PEACE WORLD - NAVIGATION STYLING (navigation.css)
  ========================================================================
*/

/* Active and Hover States */
.nav-link {
  color: var(--color-slate);
  position: relative;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-teal);
  background-color: var(--color-teal-light);
}

/* Logical spacing handles border flip in RTL */
.dir-auth-border {
  border-left: 1px solid var(--color-teal-light);
  padding-left: 1rem;
}

[dir="rtl"] .dir-auth-border {
  border-left: none;
  border-right: 1px solid var(--color-teal-light);
  padding-left: 0;
  padding-right: 1rem;
}

/* Mobile Hamburger Menu line adjustments on active */
#mobile-menu-toggle.active #hamburger-line-1 {
  transform: rotate(45deg) translate(2px, 1px);
}

#mobile-menu-toggle.active #hamburger-line-2 {
  opacity: 0;
  transform: translateX(-10px);
}

#mobile-menu-toggle.active #hamburger-line-3 {
  transform: rotate(-45deg) translate(2px, -1px);
}

/* Handle mobile menu drawer expand transitions.
   The height cap is viewport-based (instead of the old fixed 500px) and the
   drawer scrolls internally, so the full link list + auth block can never
   get clipped no matter how many links the menu gathers. */
#mobile-menu.open {
  display: block !important;
  max-height: calc(100vh - 5rem) !important;
  overflow-y: auto;
}
