/* Bottom Sheet
   Mobile-only overlay for bible reader (85vh, sharp corners)
   Swipe-down to close, dimmed background overlay */

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(58, 53, 46, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.bottom-sheet-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 210;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  height: 85vh;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-default);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.bottom-sheet--open {
  transform: translateY(0);
}

/* Drag handle */
.bottom-sheet__handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}

.bottom-sheet__handle-bar {
  width: 40px;
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
}

/* Scrollable content area */
.bottom-sheet__content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Only shown on mobile via JS media query check */
@media (min-width: 768px) {
  .bottom-sheet,
  .bottom-sheet-overlay {
    display: none;
  }
}
