/* ==========================================
   Windows 11 Context Menu
   ========================================== */

.context-menu {
  position: fixed;
  z-index: 5000;
  min-width: 240px;
  background: rgba(44, 44, 44, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255,255,255,0.06);
  animation: contextMenuIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes contextMenuIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Quick Actions Row (Windows 11 new style) */
.context-menu-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.context-quick-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.1s ease;
  position: relative;
}
.context-quick-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.context-quick-btn:active {
  background: rgba(255,255,255,0.04);
  transform: scale(0.92);
}

.context-quick-btn .tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,30,0.95);
  color: #ccc;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  border: 1px solid rgba(255,255,255,0.06);
}
.context-quick-btn:hover .tooltip { opacity: 1; }

/* Menu Items */
.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #e0e0e0;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.08s ease;
  position: relative;
  user-select: none;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.context-menu-item:active {
  background: rgba(255, 255, 255, 0.03);
}

.context-menu-item i {
  width: 18px;
  font-size: 13px;
  text-align: center;
  color: #999;
  transition: color 0.08s;
}
.context-menu-item:hover i {
  color: #ccc;
}

.context-menu-item .shortcut {
  margin-left: auto;
  font-size: 11px;
  color: #666;
}

.context-menu-item.danger { color: #f87171; }
.context-menu-item.danger i { color: #f87171; }
.context-menu-item.danger:hover { background: rgba(248, 113, 113, 0.1); }

.context-menu-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Submenu indicator */
.context-menu-item.has-submenu::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  margin-left: auto;
  color: #666;
}

/* Separator */
.context-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 10px;
}

/* Section Label */
.context-menu-label {
  padding: 6px 14px 2px;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Acrylic accent strip at top (Windows 11 detail) */
.context-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.1) 20%, 
    rgba(255,255,255,0.15) 50%, 
    rgba(255,255,255,0.1) 80%, 
    transparent
  );
}
