/* ═══════════════════════════════════════════════════════════════
   RUTE STANDALONE CSS - TERRA TIMETABLE BOARD
   ═══════════════════════════════════════════════════════════════ */

body.rute-standalone-body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  background-color: var(--bg, #0A0A0A);
  color: var(--text);
}

.video-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graticule-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: linear-gradient(rgba(196, 168, 130, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 168, 130, 0.22) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Container animat "Swipe Up" la încărcare */
.rute-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  
  /* Swipe-up animation */
  transform: translateY(100vh);
  animation: swipeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes swipeUp {
  to { transform: translateY(0); }
}

/* Header style for standalone dashboard back button */
.rezerva-header {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.rezerva-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C4A883;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
  padding: 8px 16px;
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 4px;
  background: rgba(20, 17, 11, 0.6);
}

.rezerva-back:hover {
  opacity: 1;
  background: rgba(196, 168, 130, 0.12);
  border-color: #C4A883;
}

/* Style overrides for split-flap board to fit standalone container */
#board.rute-standalone-board {
  position: relative;
  transform: none !important;
  background: transparent;
  padding: 0;
  width: 100%;
}

.board-rows {
  max-height: none !important;
  overflow: visible !important;
}

@media (max-width: 680px) {
  .rute-container {
    padding: 32px 12px 64px 12px;
  }
  .rezerva-header {
    margin-bottom: 24px;
  }
}
