@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --neon-pink: #ff006e;
  --neon-yellow: #ffbe0b;
  --neon-cyan: #3a86ff;
  --neon-green: #06d6a0;
  --neon-purple: #8338ec;
  --bg-0: #0a0118;
  --bg-1: #14082a;
  --ink: #f1eaff;
  --ink-dim: rgba(241, 234, 255, 0.65);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --line: rgba(255, 255, 255, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Animated funky background */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(255,0,110,0.35), transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(58,134,255,0.30), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(131,56,236,0.28), transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(6,214,160,0.22), transparent 60%);
  animation: blobs 24s ease-in-out infinite;
  filter: blur(40px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}
@keyframes blobs {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(3%, -2%) rotate(8deg); }
  66% { transform: translate(-2%, 3%) rotate(-6deg); }
}

a { color: var(--neon-yellow); text-decoration: none; transition: color 0.15s; }
a:hover { color: #fff; text-decoration: none; }

::selection { background: var(--neon-pink); color: #fff; }

/* NAV */
.nav {
  display: flex; gap: 22px; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 1, 24, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.nav .brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  font-size: 20px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow), var(--neon-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav a { color: var(--ink); opacity: 0.7; font-size: 14px; font-weight: 500; }
.nav a:hover { opacity: 1; color: var(--neon-yellow); }
.nav a.brand:hover { opacity: 1; }
.nav .spacer { flex: 1; }
.nav .auth-state {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-green);
  opacity: 0.85;
  padding: 4px 10px;
  border: 1px solid rgba(6, 214, 160, 0.35);
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.08);
}
.nav .auth-state:empty { display: none; }

.container { max-width: 920px; margin: 0 auto; padding: 56px 24px 100px; }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 12px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { margin-bottom: 14px; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 24px rgba(255, 0, 110, 0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255, 0, 110, 0.55); text-decoration: none; filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--glass-strong); box-shadow: 0 0 0 1px rgba(255,255,255,0.2); }
.btn.danger {
  background: linear-gradient(135deg, #b03030, #6b0f0f);
  box-shadow: 0 4px 18px rgba(176, 48, 48, 0.4);
}
.btn.danger:hover { box-shadow: 0 8px 28px rgba(176, 48, 48, 0.6); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* FORM */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  opacity: 0.7; margin-bottom: 8px; font-weight: 600;
}
.input, textarea, input[type="file"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
input[type="file"] { padding: 10px 14px; }
textarea { min-height: 220px; resize: vertical; line-height: 1.6; }
.input:focus, textarea:focus {
  outline: none;
  border-color: var(--neon-yellow);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 190, 11, 0.15);
}

/* CARDS */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card.muted { opacity: 0.7; }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row .spacer { flex: 1; }

.muted { opacity: 0.6; font-size: 13px; }
.error { color: #ff6b8a; font-size: 14px; }
.success { color: var(--neon-green); font-size: 14px; }

.empty {
  text-align: center; padding: 80px 20px; opacity: 0.5;
  font-style: italic; font-size: 16px;
}

/* MUSIC TRACKS */
.track-list { display: flex; flex-direction: column; gap: 14px; }
.track {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.track::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
  opacity: 0.6;
}
.track:hover { border-color: rgba(255, 190, 11, 0.4); background: var(--glass-strong); }
.track .title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.track .meta { font-size: 12px; opacity: 0.6; margin-bottom: 12px; letter-spacing: 0.3px; }
.track audio { width: 100%; height: 38px; }

/* BLOG POST LIST */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  position: relative;
}
.post-item:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 190, 11, 0.4);
  transform: translateX(4px);
}
.post-item .title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.post-item .meta {
  font-size: 12px;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.post-item a { color: inherit; text-decoration: none; display: block; }

.post-body { white-space: pre-wrap; word-wrap: break-word; line-height: 1.75; font-size: 17px; }

.hidden { display: none !important; }
