/* Lee Wyatt Corp shared site chrome — copied VERBATIM from index.html.
   Every page links this so the header, nav, logo, profile button, and footer
   are byte-for-byte identical to the homepage. Only page bodies differ. */
:root {
  --bg: #050508;
  --bg2: #0a0a10;
  --text: #ffffff;
  --text-muted: #8888a0;
  --text-dim: #555566;
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent3: #ec4899;
  --safe-top: env(safe-area-inset-top);
}

@supports (padding-top: constant(safe-area-inset-top)) {
  :root {
    --safe-top: constant(safe-area-inset-top);
  }
}

:root {
  --accent-glow: rgba(99, 102, 241, 0.4);
  --pink-glow: rgba(236, 72, 153, 0.28);
  --violet-glow: rgba(139, 92, 246, 0.32);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --green: #22c55e;
  --music-green: #1DB954;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

html::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--safe-top);
  z-index: 2147483647;
  pointer-events: none;
  background: var(--bg);
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 98;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(236, 72, 153, 0.08), transparent 15rem),
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(99, 102, 241, 0.07), transparent 22rem);
  mix-blend-mode: screen;
  opacity: 0.48;
  transition: opacity 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 2px;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
  pointer-events: none;
}

.bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.bg::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 900px 700px at 20% 20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 800px 600px at 80% 30%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 700px 500px at 50% 80%, rgba(236, 72, 153, 0.08), transparent);
  animation: bgPulse 30s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, 1%) scale(1.02); }
  66% { transform: translate(-1%, 2%) scale(0.98); }
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 72%);
  animation: gridDrift 48s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

body::before {
  content: '';
  position: fixed;
  top: calc(-1 * var(--safe-top) - 16px);
  left: 0;
  right: 0;
  height: calc(max(72px, calc(var(--safe-top) + 22px)) + var(--safe-top) + 32px);
  z-index: 99;
  pointer-events: none;
  background: #050508;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  padding: calc(20px + var(--safe-top)) 0 20px;
  background: #050508;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -80px 0 80px #050508;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent3), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav { display: flex; gap: 32px; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--text); }
nav a[href*="affiliates"] { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 20px; margin-left: -12px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-cta {
  min-height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(99,102,241,0.34), rgba(236,72,153,0.24));
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.login-cta.profile-avatar {
  width: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(99,102,241,0.72), rgba(236,72,153,0.52));
}

footer {
  padding: 24px;
  border-top: 1px solid var(--card-border);
}

footer p { text-align: center; color: var(--text-dim); font-size: 14px; }

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text-muted); }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(10, 10, 16, 0.78);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(236, 72, 153, 0.85));
  transform: translateY(-3px) scale(1.03);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  nav {
    position: absolute;
    top: 70px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(10, 10, 16, 0.94);
    border: 1px solid var(--card-border);
  }
  nav a { padding: 12px; }
  body.nav-open nav { display: flex; }
}

/* Content sub-pages use <main>; clear the fixed header. */
main { padding-top: calc(82px + var(--safe-top)); } /* exact header height (20+safe top pad + 42 row + 20 bottom) — no dead gap, notch-safe */
