/**
 * Dice Manipulation Menu Component Styles
 * 
 * Context menu that appears on long-press of a die
 * Styled to match action menu
 */

.dice-manipulation-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.dice-manipulation-menu .menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: all;
}

.dice-manipulation-menu .menu-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(145deg, #2a2d31, #181a1c 65%);
  padding: 6px 12px 8px;
  border: 3px solid #000;
  border-radius: 0; /* Sharp corners like action menu */
  box-shadow: 4px 4px 0 #000;
  min-width: 220px;
  max-width: 260px;
  transform: translate(-50%, -100%) translateY(-10px);
  animation: menuSlideIn 0.2s ease-out;
  pointer-events: all;
  z-index: 10001;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
}

/* Left-aligned menu for dice on the left side */
.dice-manipulation-menu .menu-container.align-left {
  transform: translate(0%, -100%) translateY(-10px);
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-10px);
  }
}

/* Animation variant for left-aligned menu */
@keyframes menuSlideInLeft {
  from {
    opacity: 0;
    transform: translate(0%, -100%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translate(0%, -100%) translateY(-10px);
  }
}

.dice-manipulation-menu .menu-container.align-left {
  animation: menuSlideInLeft 0.2s ease-out;
}

.dice-manipulation-menu .menu-header {
  font-size: 16px;
  color: #aaa;
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 1px;
}

.dice-manipulation-menu .menu-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dice-manipulation-menu .menu-option {
  display: flex;
  align-items: center;
  padding: 6px 18px;
  /* Background color set inline via style attribute */
  border: 2px solid #000;
  border-radius: 0; /* Sharp corners */
  cursor: pointer;
  transition: all 0.15s ease;
  color: #fff;
  font-size: 18px;
  text-shadow: 2px 2px 0 #000;
  box-shadow: 2px 2px 0 #000;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  text-align: left;
  font-family: 'Bangers', cursive;
}

.dice-manipulation-menu .menu-option:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #000;
}

.dice-manipulation-menu .menu-option:active {
  filter: brightness(0.95);
  transform: translateY(1px);
  box-shadow: 1px 1px 0 #000;
}

.dice-manipulation-menu .option-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dice-manipulation-menu .option-label {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.dice-manipulation-menu .option-sublabel {
  font-size: 12px;
  opacity: 0.75;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 #000;
}

.dice-manipulation-menu .menu-cancel {
  width: 100%;
  background: linear-gradient(145deg, #2a2d31, #181a1c 65%);
  border: 2px solid #000;
  border-radius: 0; /* Sharp corners */
  box-shadow: 2px 2px 0 #000;
  padding: 10px 12px;
  cursor: pointer;
  font-family: 'Bangers', cursive;
  font-size: 18px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  transition: all 0.15s ease;
  text-align: center;
  margin-top: 4px;
}

.dice-manipulation-menu .menu-cancel:hover {
  background: linear-gradient(145deg, #3a3d41, #282a2c 65%);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #000;
}

.dice-manipulation-menu .menu-cancel:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 #000;
}

/* Mobile optimizations */
@media (max-width: 1024px) {
  .dice-manipulation-menu .menu-container {
    min-width: 280px;
    max-width: 90vw;
  }
  
  .dice-manipulation-menu .menu-option {
    padding: 14px 18px;
  }
  
  .dice-manipulation-menu .option-icon {
    font-size: 28px;
  }
  
  .dice-manipulation-menu .option-label {
    font-size: 20px;
  }
}
