/**
 * Accessibility Utilities
 * Skip links, screen reader support, focus management
 */

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
  font-weight: var(--font-weight-bold);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Indicators */
.gallery-nav-btn:focus-visible,
.nav-link:focus-visible,
.language-switcher-button:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scroll-to-top button has its own focus styling */
.scroll-to-top-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Ensure interactive elements are large enough */
button,
.nav-link {
  min-height: 44px;
  min-width: 44px;
}

/* Gallery nav buttons already have correct sizing */
.gallery-nav-btn {
  width: 56px;
  height: 56px;
}

/* Scroll-to-top button keeps its original dimensions */
.scroll-to-top-btn {
  width: 56px !important;
  height: 56px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-nav-btn,
  .skip-link {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
