/* Scroll Area Component Styles
 * Hides native scrollbars and provides container for custom scrollbar elements
 */

:host {
  display: block;
  position: relative;
  overflow: hidden;
}

/* Viewport - the scrollable container */
.viewport {
  width: 100%;
  height: 100%;
  overflow: scroll;

  /* Hide native scrollbars across browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
  -webkit-overflow-scrolling: touch; /* Smooth iOS scroll */
}

/* Hide scrollbars in Chrome/Safari/Edge Chromium */
.viewport::-webkit-scrollbar {
  display: none;
}

/* Focus styles - no outline by default */
.viewport:focus {
  outline: none;
}

/* Focus visible for keyboard navigation */
.viewport:focus-visible {
  outline: 2px solid var(--seki-ring, hsl(240, 5%, 64.9%));
  outline-offset: -2px;
}

/* Content wrapper - ensures proper sizing */
.content {
  min-width: 100%;
  min-height: 100%;
}

/* Corner spacing when both scrollbars are present */
:host([data-has-vertical-overflow][data-has-horizontal-overflow]) .viewport {
  padding-right: 12px;
  padding-bottom: 12px;
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: more) {
  .viewport:focus-visible {
    outline-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .viewport {
    scroll-behavior: auto;
  }
}
