/*
 Theme Name: Shadowmind Neural OS
 Version: 1.0
 Author: DJ SHADOWMIND
*/

/* =========================
   VARIABLES
========================= */
:root {
  --neon: #00f7ff;
  --neon2: #ff00ff;
  --accent: #39ff14;
  --signal-speed: 1;

  /* FIX: single spacing system (this controls ALL gaps) */
  --flow-space: clamp(18px, 3vw, 56px);
  --flow-tight: clamp(10px, 2vw, 24px);
}

/* =========================
   BASE SYSTEM
========================= */
body {
  position: relative;
  margin: 0;
  background: black;
  color: var(--neon);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;

  animation: signalFlicker 6s infinite linear;
}

/* =========================
   GLOBAL LAYER SYSTEM
========================= */
.hero-neural,
.signal-embed-wrapper,
.signal-embed,
.release-art,
.neural-footer {
  position: relative;
  z-index: 2;
}

/* =========================
   SCANLINE OVERLAY
========================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

/* =========================
   HERO (FIXED SPACING MODEL)
========================= */
.hero-neural {
  min-height: clamp(420px, 60vh, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* FIX: consistent spacing control */
  padding: var(--flow-space) 20px;
}

.hero-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  letter-spacing: 4px;
  color: var(--neon2);
}

.hero-content h2 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* =========================
   ALBUM ART
========================= */
.release-art {
  width: min(420px, 80vw);
  aspect-ratio: 1 / 1;
  margin: var(--flow-tight) auto;
}

.release-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease, filter 0.6s ease, box-shadow 0.6s ease;
}

/* =========================
   CTA BUTTONS
========================= */
.release-actions {
  margin-top: var(--flow-tight);
  margin-bottom: var(--flow-tight);
}

.release-actions a {
  display: inline-block;
  margin: 5px;
  padding: 10px 14px;
  border: 1px solid var(--neon);
  color: var(--neon);
  text-decoration: none;
  transition: 0.3s ease;
}

.release-actions a:hover {
  background: var(--neon2);
  color: black;
}

/* =========================
   SPOTIFY EMBED
========================= */
.signal-embed-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;

  /* FIX: single spacing source of truth */
  padding: var(--flow-space) 20px;
}

.signal-embed-inner {
  width: min(900px, 92vw);
  border: 1px solid var(--neon);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 0 40px rgba(0,255,255,0.15);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}

.signal-embed {
  width: 100%;
  height: 380px;
  border-radius: 10px;
  display: block;
}

/* =========================
   FOOTER
========================= */
.neural-footer {
  position: relative;
  z-index: 2;
  padding: var(--flow-space) 20px;
  text-align: center;
  border-top: 1px solid rgba(0,255,255,0.2);
  color: var(--neon);
}

.neural-footer a {
  color: var(--neon2);
}

.neural-footer a:hover {
  color: var(--accent);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.footer-brand {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon2);
  letter-spacing: 2px;
  margin-bottom: var(--flow-tight);
}

.footer-links a {
  margin: 0 10px;
  color: var(--neon);
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--neon2);
}

.footer-signature {
  margin-top: var(--flow-tight);
  font-size: 12px;
  opacity: 0.6;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon2);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
    0 0 calc(10px * var(--signal-speed)) var(--neon),
    0 0 calc(20px * var(--signal-speed)) var(--neon);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes signalFlicker {
  0%   { filter: brightness(1); }
  2%   { filter: brightness(1.05) contrast(1.05); }
  3%   { filter: brightness(0.98); }
  5%   { filter: brightness(1); }
  100% { filter: brightness(1); }
}

@keyframes textDrift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(0.5px,-0.5px); }
  40%  { transform: translate(-0.5px,0.5px); }
  60%  { transform: translate(0.3px,0.2px); }
  80%  { transform: translate(-0.2px,-0.3px); }
  100% { transform: translate(0,0); }
}

/* =========================
   MOBILE FIX (CLEAN SINGLE BLOCK)
========================= */
@media (max-width: 768px) {

  .hero-neural {
    min-height: auto;
    padding: 40px 16px 10px;
    display: block;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .release-art {
    width: min(320px, 85vw);
  }

  .signal-embed {
    height: 260px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}