/* BUG-031: Mobile topbar ⋮ menu — Account, Logout, Theme accessible on iOS */

/* Three-dot button — hidden on desktop, visible on mobile */
#aidc-mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  cursor: pointer;
  color: #c0c4d0;
  font-size: 18px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
#aidc-mobile-menu-btn:active {
  background: rgba(255, 255, 255, .08);
}

/* Dropdown panel */
#aidc-mobile-menu-dropdown {
  display: none;
  position: fixed;
  top: 52px;
  right: 8px;
  z-index: 500;
  background: #0e1525;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6);
  min-width: 180px;
  overflow: hidden;
  animation: aidc-menu-in .15s ease;
}
@keyframes aidc-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#aidc-mobile-menu-dropdown.open {
  display: block;
}

/* Menu items */
.aidc-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #e8eaf0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.aidc-menu-item:last-child { border-bottom: none; }
.aidc-menu-item:active { background: rgba(255, 255, 255, .06); }
.aidc-menu-icon { font-size: 16px; width: 22px; text-align: center; }

/* Overlay to dismiss menu on outside tap */
#aidc-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 499;
}
#aidc-menu-overlay.open { display: block; }

/* Show ⋮ button only on mobile */
@media (max-width: 768px) {
  #aidc-mobile-menu-btn {
    display: flex !important;
  }
}
