/* --------- Theme Variables --------- */
:root {
  --bg-color: #050712;
  --bg-elevated: #101324;
  --accent: #6dd6ff;
  --accent-soft: #a3e5ff;
  --text-main: #f4f7ff;
  --text-muted: #a0a4b8;
  --border-subtle: #2a2f4a;
  --radius: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --font-main: 'Geologica', sans-serif;
}

/* --------- Base --------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background: radial-gradient(circle at top, #151a3a, #050712 60%);
  min-height: 100vh;
}

/* --------- Landing --------- */
.landing-body {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

   /* DEBUG: just show the image, no gradients */
  background-color: #000;
  background-image: url("media/images/entrance-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

}


.landing-body::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 187, 120, 0.22), transparent 70%);
  top: -160px;
  right: -80px;
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
  animation: bgDrift 38s linear infinite alternate;
}

/* purple haze behind the hologram, tied to the doorway */
/* purple haze behind the hologram, tied to the doorway */
.landing-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-52%, -55%);

  width: 260px;
  height: 170px;
  pointer-events: none;

  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(190, 120, 255, 0.48) 0%,   /* stronger core */
      rgba(120, 60, 200, 0.0) 70%);

  mix-blend-mode: screen;
  opacity: 0.45;                      /* you WILL see this now */
  filter: blur(11px);
  animation: hazePulse 7s ease-in-out infinite;
}

@keyframes hazePulse {
  0% {
    opacity: 0.35;
    transform: translate(-52%, -55%) scaleY(0.96);
  }
  50% {
    opacity: 0.6;                     /* peak glow */
    transform: translate(-52%, -55%) scaleY(1.04);
  }
  100% {
    opacity: 0.35;
    transform: translate(-52%, -55%) scaleY(0.96);
  }
}

@keyframes bgDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-70px, 50px, 0);
  }
}

.landing-container {
  position: relative;
  max-width: 720px;
  /* kill the big dark card */
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  text-align: center;
}



.site-title {
  margin: 6px 0 10px;
  font-size: 2.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
}


.landing-panel {
    position: relative;
    margin: 0 auto;
    margin-top: 26px;              /* how high the console sits on the door */
    padding: 12px 40px 18px;
    max-width: 420px;
    width: 420px;

    /* holo glass look – lighter + see-through */
    background: radial-gradient(circle at 50% 0,
        rgba(8, 40, 70, 0.26) 0%,
        rgba(8, 40, 70, 0.18) 35%,
        rgba(0, 0, 0, 0.35) 100%);
    border-radius: 28px;
    border: 1px solid rgba(120, 236, 255, 0.55);

    box-shadow:
        0 0 20px rgba(120, 236, 255, 0.32),
        0 0 3px rgba(0, 0, 0, 0.9);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    color: #bff3ff; /* default text color */
}


/* the “Hi! New here?” text */
.landing-question {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #8cf0ff;
  text-shadow:
    0 0 4px rgba(140, 240, 255, 0.7),
    0 0 12px rgba(140, 240, 255, 0.45);
  animation: questionGlow 7s ease-in-out infinite;
}

/* keep the row of buttons tidy in the holo panel */
.button-row {
  display: flex;
  flex-direction: row; /*<-side-by-side*/
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* inner frame on the door – disabled for now */
/*
.landing-panel::before {
  content: "";
  position: absolute;
  inset: 10px 18px 40px;
  border-radius: 22px;
  border: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
*/

/* glowing strip at the "floor" of the doorway */
.landing-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: 72%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(137, 217, 255, 0.9),
    transparent
  );
  opacity: 0.7;
  filter: blur(0.6px);
  pointer-events: none;
  animation: thresholdGlow 3.8s ease-in-out infinite alternate;
}

@keyframes thresholdGlow {
  0% {
    opacity: 0.35;
    transform: translateX(-50%) scaleX(0.94);
  }
  100% {
    opacity: 0.95;
    transform: translateX(-50%) scaleX(1.03);
  }
}


/* the “Hi! New here?” text */
.landing-question {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #8cf0ff;
  text-shadow:
    0 0 4px rgba(140, 240, 255, 0.7),
    0 0 12px rgba(140, 240, 255, 0.45);
  animation: questionGlow 7s ease-in-out infinite;
}



/* keep the row of buttons tidy in the holo panel */
.button-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Geologica', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

/* shared glassy hologram look */
.button.primary,
.button.secondary {
  background: rgba(2, 12, 20, 0.35);                 /* see-through */
  color: #bff8ff;                                    /* cyan-ish text */
  border-radius: 999px;
  border: 1px solid rgba(140, 235, 255, 0.8);
  box-shadow:
    0 0 8px rgba(120, 236, 255, 0.45),
    inset 0 0 6px rgba(0, 0, 0, 0.85);
}

/* YES: a little brighter & more glowy */
.button.primary {
  box-shadow:
    0 0 12px rgba(160, 245, 255, 0.75),
    inset 0 0 6px rgba(0, 0, 0, 0.9);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 22px rgba(180, 255, 255, 1),
    inset 0 0 10px rgba(0, 0, 0, 1);
}

/* NO/Archive: slightly subtler glow */
.button.secondary:hover {
  background: rgba(8, 32, 60, 0.7);
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(160, 245, 255, 0.9),
    inset 0 0 8px rgba(0, 0, 0, 0.9);
}

.tiny-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
/* --- HOLOGRAM WRAPPER (Sigil + Panel unified) --- */
.holo-console {
  mix-blend-mode: screen; /* or lighten */
    position: absolute;
    left: 50%;
    top: 58%;                  /* tweak this up/down to taste */
    transform: translate(-62%, -60%) scale(0.75);
    display: flex;
    flex-direction: column;    /* sigil on top, panel under */
    align-items: center;
    gap: 20px;
    z-index: 5;
    pointer-events: none;
}

/* allow the buttons inside to still work */
.holo-console a {
    pointer-events: auto;
}

/* --------- Archive Layout --------- */
.archive-body {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.archive-body::before {
  content: "";
  position: fixed;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(137, 217, 255, 0.18), transparent 70%);
  bottom: -200px;
  left: -120px;
  opacity: 0.7;
  filter: blur(5px);
  pointer-events: none;
  animation: bgDriftArchive 44s linear infinite alternate;
}

@keyframes bgDriftArchive {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(80px, -40px, 0);
  }
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 7, 18, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.top-link:hover {
  text-decoration: underline;
}

.top-title {
  margin: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.archive-main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.9fr);
  gap: 18px;
  padding: 22px 22px 30px;
  max-width: 1120px;
  margin: 0 auto;
}


@media (max-width: 800px) {
  .archive-main {
    grid-template-columns: 1fr;
  }
}

/* Tabs */
.view-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 13, 30, 0.8);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.tab-button.active {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.tab-button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Panels */
.view-panel,
.details-panel {
  padding: 14px 12px;
  border-radius: var(--radius);
  background: rgba(10, 13, 30, 0.85);
  border: 1px solid var(--border-subtle);
  min-height: 220px;
}

.placeholder-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Timeline list */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}


.timeline-item:hover {
  border-color: var(--accent-soft);
  background: rgba(109, 214, 255, 0.06);
}

.timeline-id {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.timeline-title {
  font-size: 1.05rem;
}

.timeline-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* Details */
.details-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.details-subline {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.details-description {
  font-size: 1rem;
  margin: 0 0 12px;
}


.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag-pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.media-section {
  margin-top: 8px;
}

.media-section h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

audio,
video {
  width: 100%;
  margin-bottom: 6px;
}

.download-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-soft);
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}


/* ---------------- Station sigil: position + glow ---------------- */

.sigil-logo {
  width: 120px;
  height: auto;
  object-fit: contain;

  opacity: 0.9;
  /* stronger base glow */
  filter: drop-shadow(0 0 22px rgba(140, 220, 255, 0.85));

  /* slightly faster + stronger pulse */
  animation: sigilPulse 7s ease-in-out infinite;

  cursor: pointer;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;

  margin-bottom: -40px; /* gap above console */
}

.sigil-logo:hover {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 0 30px rgba(170, 235, 255, 1));
}

/* slow “breathing” halo */
@keyframes sigilPulse {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 16px rgba(120, 200, 255, 0.6));
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 38px rgba(170, 235, 255, 1));
    opacity: 1;
  }
  100% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 16px rgba(120, 200, 255, 0.6));
    opacity: 0.8;
  }
}

/* -----------------------------------------------------
   WELCOME OVERLAY (Tutorial-style dimmed layer)
----------------------------------------------------- */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(circle at top, rgba(20, 40, 80, 0.7), rgba(0, 0, 0, 0.88));
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

.overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-panel {
  max-width: 720px;
  width: 100%;
  background: rgba(5, 9, 22, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(163, 229, 255, 0.26);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8);
  padding: 28px 26px 24px;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

/* subtle animated border glow */
.welcome-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(164, 229, 255, 0.2);
  pointer-events: none;
  opacity: 0.8;
  animation: welcomeBorderGlow 12s ease-in-out infinite alternate;
}

@keyframes welcomeBorderGlow {
  0% { opacity: 0.25; filter: blur(0px); }
  50% { opacity: 0.5; filter: blur(1px); }
  100% { opacity: 0.3; filter: blur(0.5px); }
}

/* small floating accent */
.welcome-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(137, 217, 255, 0.3), transparent 65%);
  top: -80px;
  right: -60px;
  opacity: 0.7;
  filter: blur(4px);
  pointer-events: none;
  animation: welcomeDrift 32s linear infinite alternate;
}

@keyframes welcomeDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-40px, 26px, 0); }
}

.welcome-panel-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--text-primary);
}

.welcome-panel-text {
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.welcome-panel-hints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-bottom: 18px;
}

.welcome-panel-hints .hint h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-primary);
}

.welcome-panel-hints .hint p {
  margin: 0;
  font-size: 0.9rem;
}

.welcome-button {
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(163, 229, 255, 0.7);
  background: linear-gradient(120deg, rgba(137, 217, 255, 0.35), rgba(5, 9, 22, 0.9));
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.welcome-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  background: linear-gradient(120deg, rgba(137, 217, 255, 0.55), rgba(5, 9, 22, 0.9));
}

.welcome-panel-footnote {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
@keyframes questionGlow {
  0% {
    text-shadow:
      0 0 3px rgba(120, 220, 255, 0.25),
      0 0 10px rgba(120, 220, 255, 0.12);
  }
  45% {
    text-shadow:
      0 0 6px rgba(140, 230, 255, 0.55),
      0 0 20px rgba(120, 220, 255, 0.26);
  }
  100% {
    text-shadow:
      0 0 3px rgba(120, 220, 255, 0.25),
      0 0 10px rgba(120, 220, 255, 0.12);
  }
}
