/* ══════════════════════════════════════
   Dropdown Menus — Titlebar Navigation
   ══════════════════════════════════════ */

.menu-btn {
  padding: 6px 12px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.menu-btn:hover, .menu-btn.menu-open {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ── Dropdown Panel ── */
.menu-dropdown {
  position: absolute;
  top: calc(var(--titlebar-height) - 2px);
  left: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  padding: 4px 0;
  animation: menuSlideIn 0.12s ease;
}

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.menu-dropdown-item:hover {
  background: var(--accent-primary-glow);
  color: var(--text-primary);
}

.menu-dropdown-item.disabled {
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0.5;
}

.menu-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item-icon {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

.menu-item-shortcut {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 24px;
}

.menu-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.menu-dropdown-label {
  padding: 4px 14px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* Backdrop to close menu on click outside */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
}

/* ── Dialogs (Shortcuts / About) ── */
.shortcuts-dialog {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

.shortcuts-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.shortcuts-header h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.shortcuts-close {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shortcuts-close:hover {
  background: var(--accent-danger);
  color: white;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 16px;
}

.shortcut-key {
  text-align: right;
}

.shortcut-key kbd {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-primary);
}

.shortcut-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 22px;
}

