/**
 * Windows 95 Context Menu Styles
 * Right-click context menu for desktop
 */

.context-menu {
  position: fixed;
  
  min-width: 160px;
  
  background-color: var(--win95-button-face);
  
  /* Raised 3D border */
  border-style: solid;
  border-width: 2px;
  border-top-color: var(--win95-button-highlight);
  border-left-color: var(--win95-button-highlight);
  border-right-color: var(--win95-button-dark-shadow);
  border-bottom-color: var(--win95-button-dark-shadow);
  box-shadow: 
    inset 1px 1px 0px var(--win95-white),
    inset -1px -1px 0px var(--win95-button-shadow),
    2px 2px 8px rgba(0, 0, 0, 0.3);
  
  padding: 2px;
  
  display: none;
  z-index: 10003;
  
  font-family: var(--font-system);
  font-size: var(--font-size-normal);
  
  user-select: none;
}

/* Individual Menu Item */
.context-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  
  padding: 4px 8px;
  min-height: 28px;
  
  background-color: transparent;
  border: none;
  
  cursor: pointer;
  
  color: var(--win95-black);
  text-align: left;
  
  width: 100%;
  
  transition: none;
}

.context-menu__item:hover:not(.context-menu__item--disabled) {
  background-color: var(--win95-highlight);
  color: var(--win95-highlight-text);
}

.context-menu__item:active:not(.context-menu__item--disabled) {
  background-color: var(--win95-blue);
}

.context-menu__item--disabled {
  color: var(--win95-gray-dark);
  cursor: default;
}

.context-menu__item--disabled .context-menu__item-icon {
  opacity: 0.5;
}

.context-menu__item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  font-size: 14px;
}

.context-menu__item-label {
  flex: 1;
  white-space: nowrap;
}

/* Menu Separator */
.context-menu__separator {
  height: 0;
  margin: 4px 2px;
  
  border-top: 1px solid var(--win95-button-shadow);
  border-bottom: 1px solid var(--win95-button-highlight);
}

/* Animation for menu appearance */
@keyframes contextMenuAppear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.context-menu {
  animation: contextMenuAppear 0.1s ease-out;
  transform-origin: top left;
}
