/*
 * Aurora Real Time — shared base styles
 * Included by all pages before their local <style> block.
 */

/* ========== DESIGN TOKENS ========== */
:root {
  --color-bg-primary: #0a0f1a;
  --color-bg-secondary: #0d1929;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-green-primary: #22c55e;
  --color-green-dark: #16a34a;
  --color-green-glow: rgba(34, 197, 94, 0.4);
  --color-teal: #2dd4bf;
  --color-purple: #8b5cf6;
  --color-amber: #f59e0b;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #64748b;
  --color-red-muted: #f87171;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, monospace;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --transition-base: 200ms ease;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: hidden;
}

/* ========== FOCUS ========== */
:focus-visible {
  outline: 2px solid var(--color-green-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ========== MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--color-green-primary); color: #000;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-lg);
  font-weight: 600; font-family: var(--font-heading); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ========== AURORA BACKGROUND ========== */
.aurora-bg {
  background: linear-gradient(135deg,
    var(--color-bg-primary) 0%,
    var(--color-bg-secondary) 25%,
    #0a1628 50%,
    #061220 75%,
    #040810 100%
  );
}

/* ========== STARS ========== */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: star-twinkle 3s ease-in-out infinite;
}

/* ========== SHARED KEYFRAMES ========== */
@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

@keyframes aurora-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========== NAV BRAND ========== */
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text-primary);
}

.nav__brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
}

/* ========== UTILITY ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
