/* ============================================
   CUSTOM CONTEXT MENU
   ============================================ */

/* Menu container */
#custom-context-menu {
  display: none;
  position: fixed;
  z-index: 100000;
  width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 6px;
  overflow: hidden;
  transform-origin: top left;
  animation: menuScale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark mode support */
[data-theme="dark"] #custom-context-menu {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes menuScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Menu Items */
.ctx-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .ctx-menu-item {
  color: #eee;
}

.ctx-menu-item:hover {
  background: rgba(26, 26, 255, 0.1);
  color: #1a1aff;
  transform: translateX(4px);
}

[data-theme="dark"] .ctx-menu-item:hover {
  background: rgba(74, 158, 255, 0.2);
  color: #4a9eff;
}

.ctx-menu-item svg {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Separator line */
.ctx-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 4px 0;
}

[data-theme="dark"] .ctx-divider {
  background: rgba(255,255,255,0.1);
}

/* Party Mode (Konami Code) Styles */
.party-mode {
  animation: rainbow-bg 5s linear infinite !important;
}

@keyframes rainbow-bg {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #f00;
  z-index: 10000;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to { transform: translateY(100vh) rotate(720deg); }
}

