/* VOID-SPACE Wiki — Custom Styles */

:root {
  --md-primary-fg-color: #0a0a0a;
  --md-primary-fg-color--light: #1a1a1a;
  --md-primary-fg-color--dark: #000000;
  --md-accent-fg-color: #7c3aed;
  --md-default-bg-color: #0d0d0d;
  --md-default-fg-color: #e0e0e0;
  --void-steel: #8a9bb0;
  --void-purple: #7c3aed;
  --void-dim: #444;
  --void-gold: #c9a84c;
}

/* Body */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0d0d0d;
  --md-default-bg-color--light: #111;
  --md-default-bg-color--lighter: #161616;
  --md-default-bg-color--lightest: #1a1a1a;
  --md-default-fg-color: #d8d8d8;
  --md-default-fg-color--light: #aaa;
  --md-default-fg-color--lighter: #666;
  --md-default-fg-color--lightest: #333;
  --md-typeset-a-color: #9d71ea;
  --md-code-bg-color: #111;
}

/* Nav header */
.md-header {
  background: #000;
  border-bottom: 1px solid #222;
}

.md-header__title {
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #d8d8d8;
}

/* Tabs */
.md-tabs {
  background: #0a0a0a;
  border-bottom: 1px solid #1e1e1e;
}

/* Sidebar */
.md-nav__title {
  color: var(--void-steel);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.md-nav__link--active {
  color: var(--void-purple) !important;
}

/* Content */
.md-content__inner h1 {
  color: #fff;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #222;
  padding-bottom: 0.4em;
}

.md-content__inner h2 {
  color: var(--void-steel);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2em;
}

.md-content__inner h3 {
  color: #c0c0c0;
}

/* Blockquotes — use for lore speech */
blockquote {
  border-left: 3px solid var(--void-purple);
  background: #111;
  padding: 1em 1.2em;
  margin: 1.5em 0;
  color: #bbb;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.md-typeset table:not([class]) {
  border: 1px solid #222;
  font-size: 0.85rem;
}

.md-typeset table:not([class]) th {
  background: #111;
  color: var(--void-steel);
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.md-typeset table:not([class]) td {
  border-color: #1e1e1e;
}

.md-typeset table:not([class]) tr:hover td {
  background: #131313;
}

/* Admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-left-width: 3px;
  border-radius: 3px;
  background: #111;
}

.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: var(--void-purple);
}

.md-typeset .admonition.warning {
  border-color: #b45309;
}

/* Code */
.md-typeset code {
  background: #111;
  color: #9d71ea;
  border-radius: 3px;
  padding: 0.1em 0.3em;
  font-size: 0.85em;
}

/* Search */
.md-search__input {
  background: #111;
  border: 1px solid #222;
  color: #d8d8d8;
}

/* Tags */
.md-tag {
  background: #1a1a1a;
  color: var(--void-steel);
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pe/Current display callout */
.current-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  color: var(--void-purple);
  text-align: center;
  padding: 1em;
  border: 1px solid #222;
  background: #0a0a0a;
  margin: 1.5em 0;
  letter-spacing: 0.1em;
}

/* Figure name headers */
.figure-name {
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 0.2em;
}

.figure-subtitle {
  color: var(--void-steel);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.figure-tagline {
  font-size: 1.1rem;
  color: #bbb;
  font-style: italic;
  border-left: 3px solid var(--void-purple);
  padding-left: 1em;
  margin-bottom: 2em;
}

/* ── Drift Encoding ──────────────────────────────────────────── */

/* Pe 1.0–2.5: Interference — barely readable, slight noise */
.drift-interference {
  color: #9d71ea;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

/* Pe 2.5–4.0: Partial Drift — runic substitution visible */
.drift-partial {
  color: #7c3aed;
  letter-spacing: 0.08em;
  font-variant-ligatures: none;
}

/* Pe 4.0–8.0: Full Drift — complete runic, glowing */
.drift-full {
  color: #6d28d9;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(109, 40, 217, 0.6);
  font-variant-ligatures: none;
}

/* Pe ≥ 8.0: Void Noise — zalgo + runes, near-unreadable */
.void-noise {
  color: #7f1d1d;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(127, 29, 29, 0.8), 0 0 24px rgba(127, 29, 29, 0.3);
  font-variant-ligatures: none;
  animation: void-flicker 4s infinite;
}

@keyframes void-flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.7; }
  98% { opacity: 0.9; }
}

/* True Read reveal block */
.true-read-gate {
  border: 1px solid #2a1a3e;
  background: #0d0a14;
  padding: 0.6em 1em;
  border-radius: 3px;
  margin-top: 0.5em;
  font-size: 0.85rem;
  color: #555;
}

.true-read-gate .tr-label {
  color: #4a2a6a;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3em;
}

/* Pe current display for region pages */
.region-pe {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.08em;
}

.region-pe.pe-low { color: #16a34a; }
.region-pe.pe-mid { color: #ca8a04; }
.region-pe.pe-high { color: #dc2626; }
.region-pe.pe-void { color: #7f1d1d; text-shadow: 0 0 6px rgba(127,29,29,0.5); }

/* Encoder tool */
.encode-tool {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 1.5em;
  margin: 1.5em 0;
}

.encode-tool input,
.encode-tool textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #d8d8d8;
  padding: 0.5em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  border-radius: 3px;
  box-sizing: border-box;
}

.encode-tool label {
  color: var(--void-steel);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3em;
  margin-top: 0.8em;
}

.encode-tool .output-box {
  background: #0a0a0a;
  border: 1px solid #6d28d9;
  color: #6d28d9;
  padding: 0.8em;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  min-height: 2.5em;
  border-radius: 3px;
  margin-top: 0.5em;
  word-break: break-all;
}

.encode-tool .copy-btn {
  background: #1a0a2e;
  border: 1px solid #7c3aed;
  color: #9d71ea;
  padding: 0.4em 1em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 0.5em;
  text-transform: uppercase;
}
