/* Section Navigation Arrows */
.section-nav {
  position: fixed;
  display: flex;
  flex-direction: column;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  gap: 12px;
  z-index: 100;
}

.section-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease, opacity 0.5s ease;
  padding: 0;
  box-shadow: var(--shadow-md);
  position: relative;
  opacity: 1;
}

.section-nav-button:hover {
  color: var(--text);
  transform: scale(1.1);
}

.section-nav-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section-nav-button:active {
  transform: scale(0.95);
}

.section-nav-button svg {
  width: 20px;
  height: 20px;
}

/* Button tooltips */
.section-nav-button::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--background);
  color: var(--text);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 100;
}

.section-nav-button:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Animated arrows on hover */
.section-nav-button.prev-section:hover svg {
  animation: moveUp 0.5s ease-in-out;
}

.section-nav-button.next-section:hover svg {
  animation: moveDown 0.5s ease-in-out;
}

@keyframes moveUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes moveDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Mobile styles */
@media (max-width: 768px) {
  .section-nav {
    right: 10px;
  }
  
  .section-nav-button {
    width: 36px;
    height: 36px;
  }
  
  .section-nav-button svg {
    width: 16px;
    height: 16px;
  }
  
  .section-nav-button::before {
    display: none;
  }
}

/* Hide on very small screens */
@media (max-width: 480px) {
  .section-nav {
    display: none;
  }
}