/* Hidden Archive -- easter-egg ARG layer. Reuses tokens from 00_tokens.css
   and css/archive-ui.css (--arc-mono etc). Every animation here is guarded
   by prefers-reduced-motion; nothing in this file is required to use the
   site normally. */

.eel-archive-glyph-slot {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.eel-archive-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: color 200ms ease, opacity 200ms ease;
}

.eel-archive-glyph:hover,
.eel-archive-glyph:focus-visible {
  color: rgba(0, 255, 136, 0.65);
}

.eel-archive-glyph:focus-visible {
  outline: 1px dashed rgba(0, 255, 136, 0.6);
  outline-offset: 2px;
}

.eel-archive-glyph--anomaly {
  color: rgba(0, 229, 255, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .eel-archive-glyph--anomaly {
    animation: eel-archive-glyph-flicker 900ms steps(6, end);
  }
}

@keyframes eel-archive-glyph-flicker {
  0%, 100% { opacity: 1; }
  20% { opacity: 0.2; }
  40% { opacity: 1; }
  60% { opacity: 0.3; }
  80% { opacity: 0.9; }
}

.eel-archive-infinity {
  cursor: pointer;
}

/* ---------------------------------------------------------------- toast */

.eel-archive-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 10500;
  max-width: 90vw;
  padding: 14px 20px;
  background: var(--arc-panel-bg, rgba(0, 0, 0, 0.7));
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 6px;
  font-family: var(--arc-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--arc-key, rgba(226, 232, 240, 0.92));
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
  text-align: center;
}

.eel-archive-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.eel-archive-toast--reduced-motion {
  transition: none;
}

.eel-archive-toast__line {
  margin: 2px 0;
}

/* ------------------------------------------------------------- terminal */

.eel-archive-terminal .modal-content {
  max-width: 480px;
  width: 100%;
  background: #050506;
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--arc-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color: rgba(226, 232, 240, 0.92);
}

.eel-archive-terminal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
}

.eel-archive-terminal__log {
  min-height: 120px;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.eel-archive-terminal__line {
  margin: 0 0 4px;
  word-break: break-word;
}

.eel-archive-terminal__record-link {
  display: inline-block;
  margin-top: 6px;
  color: #00ff88;
  text-decoration: underline;
  font-size: 0.8rem;
}

.eel-archive-terminal__prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.eel-archive-terminal__caret {
  color: #00ff88;
}

.eel-archive-terminal__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- unknown card */

.eel-unknown-artist-card {
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--arc-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  cursor: pointer;
}

.eel-unknown-artist-card:hover,
.eel-unknown-artist-card:focus-visible {
  color: rgba(0, 255, 136, 0.7);
  border-color: rgba(0, 255, 136, 0.3);
}

.eel-unknown-artist-card__name {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}

.eel-unknown-artist-card__years,
.eel-unknown-artist-card__status,
.eel-unknown-artist-card__ref {
  font-size: 0.68rem;
  margin: 2px 0;
  opacity: 0.8;
}

/* --------------------------------------------------------- Archive Zero */

.eel-archive-zero {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 20px 80px;
  text-align: center;
  font-family: var(--arc-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color: rgba(226, 232, 240, 0.92);
}

.eel-archive-zero__noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}

.eel-archive-zero > * {
  position: relative;
  z-index: 1;
}

.eel-archive-zero__back {
  display: inline-block;
  margin-bottom: 32px;
  color: #555;
  font-size: 0.8rem;
  text-decoration: none;
}

.eel-archive-zero__title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 6px;
}

.eel-archive-zero__subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 40px;
  text-transform: uppercase;
}

.eel-archive-zero__timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.eel-archive-zero__record {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.eel-archive-zero__record-year {
  color: rgba(0, 255, 136, 0.75);
  min-width: 96px;
  text-align: left;
}

.eel-archive-zero__record-label {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-align: right;
  flex: 1;
}

.eel-archive-zero__terminal-trigger {
  display: inline-block;
  margin: 8px 0 44px;
  padding: 10px 22px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 6px;
  color: #00ff88;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.eel-archive-zero__terminal-trigger:hover,
.eel-archive-zero__terminal-trigger:focus-visible {
  background: rgba(0, 255, 136, 0.12);
}

.eel-archive-zero__motif {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  margin: 0 0 10px;
}

.eel-archive-zero__motif--final {
  color: rgba(0, 255, 136, 0.55);
  margin-top: 20px;
}

.eel-archive-zero__glyph-slot {
  display: inline-block;
  margin-top: 36px;
  opacity: 0.5;
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .eel-archive-toast {
    transition: none;
  }
}
