/**
 * Section Scroll Arrow Component
 * Reusable scroll arrow for navigating between sections
 */

.section-scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: rgba(0, 0, 0, 0.6);
  padding: 0;
}

.section-scroll-arrow:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0.8);
  transform: translateX(-50%) translateY(4px);
}

.section-scroll-arrow:focus {
  outline: 2px solid #2196F3;
  outline-offset: 2px;
}

.section-scroll-arrow svg {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}

/* Light variant for dark backgrounds */
.section-scroll-arrow--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.8);
}

.section-scroll-arrow--light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .section-scroll-arrow svg {
    animation: none;
  }
  
  .section-scroll-arrow:hover {
    transform: translateX(-50%);
  }
}

/* Ensure parent sections have relative positioning */
.has-scroll-arrow {
  position: relative;
  padding-bottom: 96px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .section-scroll-arrow {
    width: 40px;
    height: 40px;
    bottom: 16px;
  }
  
  .section-scroll-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .has-scroll-arrow {
    padding-bottom: 72px !important;
  }
}

