/* Radio Silence :: Cold War Numbers Station Archive
   Style sheet — last touched 03.02.2024 — K7RXQ     */

* { box-sizing: border-box; }

body {
  background-color: #0a0a0a;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,0,0.015) 2px,
    rgba(0,255,0,0.015) 4px
  );
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #cccccc;
}

a { color: #88cc44; text-decoration: none; }
a:hover { color: #bbff66; text-decoration: underline; }
a:visited { color: #669933; }

/* ---- Marquee bar ---- */
#marquee-bar {
  background-color: #001a00;
  border-bottom: 1px solid #224422;
  padding: 3px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #44aa44;
}

.marquee-content {
  display: inline-block;
  animation: marquee 40s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ---- Page wrap ---- */
#page-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-left: 1px solid #1a3a1a;
  border-right: 1px solid #1a3a1a;
}

/* ---- Header ---- */
#header {
  background-color: #051005;
  border-bottom: 2px solid #22aa22;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#site-title {
  font-family: "Courier New", Courier, monospace;
  font-size: 32px;
  font-weight: bold;
  color: #33dd33;
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(50,220,50,0.4);
}

.title-break {
  display: block;
  font-size: 14px;
  letter-spacing: 8px;
  color: #779977;
  text-shadow: none;
}

#site-sub {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #556655;
  margin-top: 4px;
  letter-spacing: 1px;
}

.signal-display {
  text-align: right;
  font-family: "Courier New", Courier, monospace;
}

.sig-label {
  display: block;
  font-size: 9px;
  color: #557755;
  letter-spacing: 2px;
}

.sig-freq {
  display: block;
  font-size: 18px;
  color: #55cc55;
  letter-spacing: 2px;
}

.sig-status {
  display: block;
  font-size: 10px;
  color: #33ff33;
  letter-spacing: 1px;
}

.blink {
  animation: blink 1.4s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ---- Nav bar ---- */
#nav-bar {
  background-color: #0f1f0f;
  border-bottom: 1px solid #335533;
  padding: 0;
  display: flex;
}

#nav-bar a {
  display: inline-block;
  padding: 7px 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #88aa88;
  text-decoration: none;
  border-right: 1px solid #1a3a1a;
  letter-spacing: 1px;
}

#nav-bar a:hover, #nav-bar a.nav-active {
  background-color: #001a00;
  color: #33ff33;
  text-decoration: none;
}

/* ---- Content area ---- */
#content-area {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  gap: 10px;
  background-color: #080808;
}

#main-col { flex: 1; min-width: 0; }
#side-col { width: 190px; flex-shrink: 0; }

/* ---- Content boxes ---- */
.content-box {
  background-color: #0a120a;
  border: 1px solid #1a3a1a;
  margin-bottom: 10px;
}

.box-title {
  background-color: #0f2a0f;
  border-bottom: 1px solid #1a4a1a;
  padding: 5px 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #55cc55;
  font-weight: bold;
  letter-spacing: 1px;
}

.box-body {
  padding: 10px 12px;
  line-height: 1.6;
  font-size: 12px;
}

.box-body p { margin: 0 0 8px; }
.box-body strong { color: #aaddaa; }

/* ---- Recording metadata table ---- */
.rec-meta-table {
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 10px;
  font-family: "Courier New", Courier, monospace;
  border: 1px solid #1a4a1a;
}

.rec-meta-table td {
  padding: 3px 8px;
  border-bottom: 1px solid #112211;
  vertical-align: top;
}

.rec-key {
  color: #779977;
  width: 120px;
  white-space: nowrap;
}

.rec-anon {
  color: #887722;
  font-style: italic;
}

.rec-note {
  background-color: #1a1a00;
  border: 1px solid #554400;
  border-left: 3px solid #aa8800;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #bbaa66;
  margin: 8px 0;
}

/* ---- Audio player mock ---- */
.audio-player-mock {
  background-color: #0a0a0a;
  border: 1px solid #2a4a2a;
  padding: 8px 10px;
  margin: 8px 0;
  font-family: "Courier New", Courier, monospace;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.player-btn {
  color: #33ff33;
  font-size: 16px;
  cursor: pointer;
}

.player-track {
  flex: 1;
  height: 6px;
  background-color: #1a3a1a;
  border: 1px solid #2a5a2a;
  position: relative;
}

.player-progress {
  width: 0%;
  height: 100%;
  background-color: #33aa33;
}

.player-time {
  font-size: 10px;
  color: #668866;
  white-space: nowrap;
}

.player-note {
  font-size: 11px;
  color: #779977;
  margin: 0;
}

/* ---- Archive list ---- */
.archive-list {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
}

.arch-head th {
  background-color: #0f2a0f;
  padding: 4px 6px;
  text-align: left;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #669966;
  border-bottom: 1px solid #2a5a2a;
  letter-spacing: 1px;
}

.archive-list td {
  padding: 4px 6px;
  border-bottom: 1px solid #0f1f0f;
  vertical-align: top;
}

.archive-list tr.alt td {
  background-color: #0a150a;
}

.mono {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
}

.rec-special {
  color: #ccaa22;
  font-weight: bold;
  font-size: 10px;
}

/* ---- Sidebar boxes ---- */
.side-box {
  background-color: #0a120a;
  border: 1px solid #1a3a1a;
  margin-bottom: 8px;
}

.side-box-title {
  background-color: #0f2a0f;
  border-bottom: 1px solid #1a4a1a;
  padding: 4px 7px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #55cc55;
  font-weight: bold;
  letter-spacing: 1px;
}

.side-box-body {
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.5;
}

.side-box-body p { margin: 0 0 5px; }
.side-box-body strong { color: #aaddaa; }

/* ---- Spectrogram page ---- */
.spectrogram-container {
  background-color: #000;
  border: 1px solid #2a4a2a;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.spectrogram-canvas {
  width: 100%;
  display: block;
  image-rendering: pixelated;
}

.spectrogram-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #557755;
  margin-top: 4px;
}

/* ---- The puzzle page ---- */
.puzzle-hint {
  display: none;
}

.morse-overlay {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  color: #33ff33;
  letter-spacing: 3px;
  line-height: 2;
  background-color: #001500;
  border: 1px solid #2a5a2a;
  padding: 10px 14px;
  margin: 10px 0;
  word-break: break-all;
}

/* ---- Footer ---- */
#footer {
  background-color: #030903;
  border-top: 1px solid #1a3a1a;
  padding: 8px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #335533;
}
