/* ============================================
   KEYBOARD SHORTCUTS PANEL STYLES
   ============================================ */

.shortcuts-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  padding: var(--space-5);
}

.shortcuts-panel.visible {
  display: flex;
}

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

.shortcuts-panel-header h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.shortcuts-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-2xl);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: var(--radius-md);
}

.shortcuts-close:hover {
  color: var(--text);
}

.shortcuts-panel > .shortcuts-panel-header,
.shortcuts-panel > .shortcuts-list,
.shortcuts-panel > .shortcuts-footer {
  /* Direct children styling */
}

.shortcuts-panel-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 450px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shortcuts-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) 0;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  transition: background 0.15s;
}

.shortcut-row:hover {
  background: rgba(0, 240, 255, 0.05);
}

.shortcut-desc {
  font-size: var(--text-base);
  color: var(--text);
}

.shortcut-key {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-2);
  color: var(--accent);
  min-width: 60px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shortcut-key:hover {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.1);
}

.shortcut-key.editing {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.2);
  animation: pulse-border 1s infinite;
  color: var(--text);
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

.shortcuts-hint {
  padding: 0 var(--space-6);
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.shortcuts-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.shortcuts-reset {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.shortcuts-reset:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Settings button style */
.setting-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.setting-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Accessibility: Respect reduced motion preference (M-09) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
