/**
 * WebGPU Atmospheric Scattering Demo - Styles
 *
 * This stylesheet provides the visual styling for the WebGPU atmosphere demo,
 * including dark theme, fullscreen canvas layout, help overlay, and GitHub banner.
 */

/* ============================================================================
 * Root and Base Styles
 * ============================================================================ */

:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #050505;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* ============================================================================
 * Canvas - Fullscreen rendering surface
 * ============================================================================ */

#webgpu-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================================
 * Help Overlay - Interactive controls guide
 * ============================================================================ */

#help {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  font-family: monospace;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#help.hidden {
  display: none;
}

ul {
  padding-left: 1em;
}

li {
  list-style: none;
}

/* ============================================================================
 * Status Message - WebGPU availability notice
 * ============================================================================ */

.status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  max-width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}

.status.hidden {
  display: none;
}

/* ============================================================================
 * Repository Banner - GitHub link at bottom
 * ============================================================================ */

#repo-banner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

#repo-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  text-decoration: none;
  pointer-events: auto;
  transition: background 150ms ease;
}

#repo-banner a:hover {
  background: rgba(0, 0, 0, 0.75);
}

#repo-banner svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* ============================================================================
 * Parcel Coordinate Overlay - Top right corner
 * ============================================================================ */

#parcel-coord-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  font-family: monospace;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 6px;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 10;
}
