/* === COLOR VARIABLE OVERRIDES === */
html[data-theme="retro"] {
  --bg-1:             #000000;
  --bg-1-90:          rgba(0, 0, 0, 0.9);
  --bg-1-overlay:     rgba(0, 0, 0, 0.85);
  --bg-2:             #0a1a0a;
  --bg-2-overlay:     rgba(10, 26, 10, 0.85);
  --bg-3:             #143214;
  --bg-acc:           #004400;
  --bg-acc-overlay:   rgba(0, 68, 0, 0.85);
  --bg-mg:            #1a3a1a;
  --fg-1:             #00ff00;
  --fg-1-focus:       #66ff66;
  --fg-1-veil:        rgba(0, 255, 0, 0.15);
  --fg-2:             #00cc00;
  --fg-3:             #009900;
  --fg-3-focus:       #00cc00;
  --fg-acc:           #00ff00;
  --fg-mg:            #007700;
  --mg:               #005500;
  --mg-acc:           #00aa00;
  --mg-acc-overlay:   rgba(0, 170, 0, 0.8);
  --cover-border-radius: 0px;
}

/* === FONT === */
html[data-theme="retro"],
html[data-theme="retro"] body,
html[data-theme="retro"] button,
html[data-theme="retro"] input {
  font-family: 'Space Mono', 'Courier New', Courier, monospace !important;
  letter-spacing: 0.02em;
}
html[data-theme="retro"] h1,
html[data-theme="retro"] h2,
html[data-theme="retro"] h3 {
  font-family: 'Space Mono', 'Courier New', Courier, monospace !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

/* === KILL BACKGROUND PHOTO === */
html[data-theme="retro"] body::before {
  display: none;
}

/* === SCANLINES via body::after (Faircamp doesn't use this pseudo-element) === */
html[data-theme="retro"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.4) 2px,
    rgba(0, 0, 0, 0.4) 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* === SUBTLE GRID (devs.fm style) === */
html[data-theme="retro"] body {
  background-image:
    linear-gradient(rgba(255, 0, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* === BORDERS & GLOW === */
html[data-theme="retro"] header {
  border-bottom: 1px solid #004400;
  box-shadow: 0 2px 8px rgba(0, 255, 0, 0.1);
}
html[data-theme="retro"] #logo {
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}
html[data-theme="retro"] .cover img,
html[data-theme="retro"] .image img {
  border: 1px solid #004400;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}
html[data-theme="retro"] .release a:hover img {
  box-shadow: 0 0 16px rgba(0, 255, 0, 0.5);
}
html[data-theme="retro"] .actions.primary a,
html[data-theme="retro"] .actions.primary button,
html[data-theme="retro"] a.button,
html[data-theme="retro"] button.button {
  border: 1px solid #005500;
  border-radius: 0;
}
html[data-theme="retro"] .actions.primary a:hover,
html[data-theme="retro"] .actions.primary button:hover {
  border-color: #00ff00;
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.4);
}
html[data-theme="retro"] .track {
  border-bottom: 1px solid #0a1a0a;
}
html[data-theme="retro"] .track.active {
  border-left: 2px solid #00ff00;
  padding-left: 4px;
}

/* === DOCKED PLAYER === */
html[data-theme="retro"] .docked_player .elements {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #000000;
  border-top: 1px solid #00ff00;
  box-shadow: 0 -2px 12px rgba(0, 255, 0, 0.3);
}
html[data-theme="retro"] .docked_player .timeline .progress {
  box-shadow: 0 0 4px rgba(0, 255, 0, 0.6);
}

/* === ARTIST PHOTO: green phosphor tint === */
html[data-theme="retro"] .home_image {
  filter: sepia(1) saturate(3) hue-rotate(85deg) brightness(0.7);
}

/* === TOGGLE BUTTON === */
#retro-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10000;
  background: none;
  border: 1px solid var(--fg-3);
  color: var(--fg-3);
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.3em 0.6em;
  cursor: pointer;
  letter-spacing: 0.05em;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
#retro-toggle:hover {
  opacity: 1;
  color: var(--fg-1);
  border-color: var(--fg-1);
}
html[data-theme="retro"] #retro-toggle {
  font-family: 'Space Mono', 'Courier New', monospace;
  border-color: #005500;
  color: #009900;
  background: #000;
  border-radius: 0;
}
html[data-theme="retro"] #retro-toggle:hover {
  border-color: #00ff00;
  color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}
