@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Rajdhani:wght@500;700&display=swap');

/* Railway / Space Terminal Aesthetics */

.departure-board {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 600px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  z-index: 100;
  pointer-events: auto;
  perspective: 1000px;
}

.departure-board .board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  border: 2px solid #333;
  border-bottom: none;
  padding: 1rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
  border-radius: 4px 4px 0 0;
  position: relative;
  overflow: hidden;
}

/* Scanline effect */

.departure-board .board-header::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title h1 {
  font-size: 1.2rem;
  color: #ffd700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.clock-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #00ff9d;
  font-size: 0.8rem;
  text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
}

.board-table {
  background: #000;
  border: 4px solid #333;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: 0 0 4px 4px;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 100px 1fr 100px 60px 50px;
  gap: 10px;
  padding: 10px;
  background: #1a1a1a;
  color: #666;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid #333;
}

.table-body {
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
}

.board-row {
  display: grid;
  grid-template-columns: 80px 100px 1fr 100px 60px 50px;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid #222;
  font-size: 0.9rem;
  align-items: center;
  position: relative;
}

.board-row:last-child {
  border-bottom: none;
}

.col-time {
  color: #888;
  font-family: monospace;
}

.col-realm {
  color: #ffd700;
  font-weight: bold;
}

.col-dest {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-status {
  font-weight: bold;
  text-align: center;
  font-size: 0.8rem;
  padding: 2px 4px;
  border-radius: 2px;
}

.col-track,
.col-plat {
  text-align: center;
  color: #888;
  font-family: monospace;
}

.col-status.green {
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
  border: 1px solid #00ff9d;
}

.col-status.yellow {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.col-status.red {
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid #ff4444;
}

/* Empty State / Loading */

.loading-row,
.empty-row {
  padding: 2rem;
  text-align: center;
  color: #444;
  font-style: italic;
  letter-spacing: 2px;
  animation: pulse 2s infinite;
}

.board-footer {
  padding: 10px;
  background: #111;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  color: #444;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.blink {
  animation: blink 1s step-end infinite;
  color: #00ff9d;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.docking-alert {
  background: rgba(10, 10, 10, 0.95);
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

/* --- LAYOUT ARCHITECTURE --- */

.shell-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  /* No scrollbars on the main window */
  background-color: var(--color-void);
}

.canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* The Void is the background */
}

/* Ensure the canvas itself hits the edges */

.canvas-layer canvas {
  display: block;
  /* Removes bottom margin gap */
  outline: none;
}:root {
  /* Palette: Norse Night & Bifrost */
  --color-void: #0f0f1a;      /* Background Deepest */
  --color-midgard: #1a1a2e;   /* Background Base */
  --color-asgard: #16213e;    /* Background Secondary */
  --color-gold: #ffd700;      /* Accents */
  --color-frost: #e94560;     /* Errors / Alerts */
  --color-bifrost-start: #7928ca;
  --color-bifrost-end: #ff0080;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
}

body {
  background-color: var(--color-midgard);
  color: white;
  font-family: var(--font-body);
  margin: 0;
  overflow: hidden; /* Critical for 3D Canvas */
}:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
