/* ============================================
   macOS Context Menu CSS – Premium Edition
   ============================================ */

#context-menu {
  position: fixed;
  min-width: 220px;
  background: var(--vibrancy-bg);
  backdrop-filter: blur(60px) saturate(200%);
  -webkit-backdrop-filter: blur(60px) saturate(200%);
  border-radius: 8px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
  padding: 5px 0;
  z-index: 20000;
  border: 0.5px solid var(--border-color);
  animation: contextMenuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
  will-change: transform, opacity;
}

@keyframes contextMenuIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(-4px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.context-item {
  padding: 5px 20px;
  font-size: 13px;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  border-radius: 5px;
  margin: 0 5px;
  transition: background 0.1s ease, color 0.1s ease;
  line-height: 1.35;
}

.context-item:hover {
  background: var(--accent-color);
  color: white;
}

.context-item.disabled {
  color: var(--text-tertiary);
  pointer-events: none;
}

.context-separator {
  height: 1px;
  background: var(--separator-color);
  margin: 5px 12px;
}

.context-item .shortcut {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 32px;
}

.context-item:hover .shortcut {
  color: rgba(255, 255, 255, 0.7);
}

.context-item .menu-arrow {
  font-size: 10px;
}

.context-item:hover .menu-arrow {
  color: rgba(255, 255, 255, 0.7);
}
