/* ScatteredNav - Navigation items scattered across the screen */

/* Base nav container */
.scatteredNav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

/* Nav item base */
.navItem {
  position: absolute;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--chaos-font-mono, 'Space Mono', monospace);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--chaos-bone-dark, #d4d0c8);
  text-decoration: none;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid currentColor;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 10;
}

.navItem:hover {
  background: var(--chaos-warn, #e8c72e);
  color: var(--chaos-concrete, #1a1a1a);
  transform: translate(-3px, 2px) rotate(-1deg) !important;
  box-shadow: 4px 4px 0 var(--chaos-danger, #c23a22);
  z-index: 100;
}

.navItem.active {
  background: var(--chaos-warn, #e8c72e);
  color: var(--chaos-concrete, #1a1a1a);
  box-shadow: 0 0 20px var(--chaos-warn, #e8c72e);
}

/* Shape variants */
.shapeRect {
  padding: 8px 16px;
  min-width: 80px;
  min-height: 32px;
}

.shapeCircle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0;
}

.shapeDot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.shapeDot:hover {
  width: 20px;
  height: 20px;
  border-color: var(--chaos-warn, #e8c72e);
  border-width: 3px;
}

.dotInner {
  display: none;
}

.shapeDot .dotInner {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--chaos-warn, #e8c72e);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.shapeDot:hover .dotInner {
  opacity: 1;
}

.shapeDot.active {
  background: var(--chaos-warn, #e8c72e);
  border-color: var(--chaos-warn, #e8c72e);
  box-shadow: 0 0 20px var(--chaos-warn, #e8c72e);
}

/* Label shown on hover */
.itemLabel {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.navItem:hover .itemLabel {
  opacity: 1;
}

.shapeDot .itemLabel {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}

.shapeDot:hover .itemLabel {
  opacity: 1;
}

/* Flash effect overlay */
.flash {
  position: fixed;
  inset: 0;
  background: white;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.flashActive {
  animation: flashAnim 0.15s ease-out;
}

@keyframes flashAnim {
  0% { opacity: 0.4; }
  100% { opacity: 0; }
}

/* Vertical dots variant */
.verticalNav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.navDot {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
}

.navDot:hover {
  border-color: var(--chaos-cyan, #00f0ff);
  box-shadow: 0 0 15px var(--chaos-cyan, #00f0ff);
  transform: scale(1.2);
}

.navDot.active {
  background: var(--chaos-cyan, #00f0ff);
  border-color: var(--chaos-cyan, #00f0ff);
  box-shadow: 0 0 20px var(--chaos-cyan, #00f0ff);
}

.navDot::before {
  content: attr(data-label);
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  color: var(--chaos-bone-dark, #d4d0c8);
  font-family: var(--chaos-font-mono, 'Space Mono', monospace);
}

.navDot:hover::before {
  opacity: 1;
}

/* Animation for entrance */
.navItem {
  animation: fadeInPlace 0.5s ease-out backwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInPlace {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navItem {
    font-size: 0.6rem;
    padding: 6px 10px;
    min-width: 60px;
  }

  .shapeCircle {
    width: 40px;
    height: 40px;
  }

  .verticalNav {
    right: 15px;
    gap: 15px;
  }

  .navDot {
    width: 12px;
    height: 12px;
  }
}
