/* Vanilla JS Navigation Buttons */
.nav-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  opacity: 1;
  transform: scale(1);
}

/* UP button - Red gradient */
.nav-button.nav-up {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
  box-shadow: 0 4px 20px rgba(220, 20, 60, 0.6), 0 0 40px rgba(220, 20, 60, 0.3);
}

/* DOWN button - Orange gradient */
.nav-button.nav-down {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 4px 20px rgba(251, 146, 60, 0.6), 0 0 40px rgba(251, 146, 60, 0.3);
}

/* Hover effects */
.nav-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 50px rgba(0, 0, 0, 0.3);
}

.nav-button.nav-up:hover {
  box-shadow: 0 6px 30px rgba(220, 20, 60, 0.8), 0 0 50px rgba(220, 20, 60, 0.5);
}

.nav-button.nav-down:hover {
  box-shadow: 0 6px 30px rgba(251, 146, 60, 0.8), 0 0 50px rgba(251, 146, 60, 0.5);
}

/* Active/Click effect */
.nav-button:active {
  transform: scale(0.95);
}

/* Hidden state */
.nav-button.hidden {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

/* SVG icon styling */
.nav-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .nav-button {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
  
  .nav-button svg {
    width: 22px;
    height: 22px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .nav-button {
    width: 54px;
    height: 54px;
  }
}

/* Ensure buttons are above everything */
.nav-button {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Animation for show/hide */
.nav-button {
  animation: fadeScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
