/* Shared Mobile Hamburger + Drawer Navigation */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* MVP: hide Login/Profile/Logout UI for now */
#mobile-login-link,
#mobile-register-link,
#mobile-logout-link,
#profile-nav-mobile-menu,
#profile-nav-desktop,
#profile-tab,
#profile-icon,
#login-link,
#register-link,
#myprofile-link,
#logout-link,
#dropdown-login,
#dropdown-register,
#dropdown-profile,
#dropdown-logout {
  display: none !important;
}

/* MVP: hide the header profile icon + dropdown completely */
.header .profile-icon,
.header .profile-dropdown,
#profile-button,
#profile-dropdown {
  display: none !important;
}

/* Mobile hamburger button (3 lines) */
.mobile-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 161, 100, 0.35);
  background: rgba(255, 192, 103, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  color: #ffa164;
}

.mobile-menu-btn:hover {
  background: rgba(255, 192, 103, 0.25);
}

.mobile-menu-btn:active {
  transform: scale(0.98);
}

.mobile-menu-btn .hamburger {
  width: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn .hamburger span {
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

/* Mobile drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1050;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: white;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1100;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top));
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f3d3a;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #3f5f5c;
  font-weight: 600;
  margin: 4px 0;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background: rgba(255, 192, 103, 0.15);
  border-color: rgba(255, 161, 100, 0.25);
}

.mobile-nav a.active {
  background: rgba(255, 192, 103, 0.2);
  color: #ffa164;
}

/* Hide on desktop */
@media (min-width: 768px) {
  .mobile-menu-btn,
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

