/* music.babayagas.dev — Babas Beats */

:root {
  --primary:       #8B5CF6;
  --primary-dark:  #7C3AED;
  --primary-light: #A78BFA;
  --glow:          0 0 24px rgba(139, 92, 246, 0.25);
  --glow-strong:   0 0 48px rgba(139, 92, 246, 0.4);
  --gradient:      linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  --spotify:       #1DB954;
}

/* ─── Hero ─────────────────────────────────────────────── */

.music-hero {
  position: relative;
  padding-top: calc(72px + 5rem);
  padding-bottom: 6rem;
  text-align: center;
  overflow: hidden;
}

.music-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 92, 246, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 80%, rgba(109, 40, 217, 0.08) 0%, transparent 60%);
}

.music-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #C4B5FD 60%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Waveform ──────────────────────────────────────────── */

.music-hero-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  justify-content: center;
  height: 52px;
  margin: 0 auto 2rem;
}

.music-hero-bar span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--primary);
  animation: waveBar 1.3s ease-in-out infinite alternate;
}

.music-hero-bar span:nth-child(1)  { height: 30%; animation-delay: 0.00s; }
.music-hero-bar span:nth-child(2)  { height: 60%; animation-delay: 0.08s; }
.music-hero-bar span:nth-child(3)  { height: 90%; animation-delay: 0.16s; }
.music-hero-bar span:nth-child(4)  { height: 50%; animation-delay: 0.24s; }
.music-hero-bar span:nth-child(5)  { height: 100%; animation-delay: 0.12s; }
.music-hero-bar span:nth-child(6)  { height: 70%; animation-delay: 0.20s; }
.music-hero-bar span:nth-child(7)  { height: 40%; animation-delay: 0.04s; }
.music-hero-bar span:nth-child(8)  { height: 85%; animation-delay: 0.28s; }
.music-hero-bar span:nth-child(9)  { height: 55%; animation-delay: 0.10s; }
.music-hero-bar span:nth-child(10) { height: 75%; animation-delay: 0.18s; }
.music-hero-bar span:nth-child(11) { height: 35%; animation-delay: 0.26s; }
.music-hero-bar span:nth-child(12) { height: 95%; animation-delay: 0.06s; }

@keyframes waveBar {
  from { transform: scaleY(0.25); opacity: 0.4; }
  to   { transform: scaleY(1);    opacity: 1; }
}

/* ─── Streaming platform buttons ────────────────────────── */

.btn-spotify,
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-spotify {
  background: var(--spotify);
  color: #000;
}

.btn-youtube {
  background: #FF0000;
  color: #fff;
}

.btn-spotify:hover,
.btn-youtube:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ─── Stream / embed panel ──────────────────────────────── */

.stream-panel {
  background: var(--dark-mid);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 2px;
  box-shadow: var(--glow-strong), inset 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.stream-panel iframe {
  border-radius: 14px;
  display: block;
}

/* ─── Release cards ─────────────────────────────────────── */

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.track-card {
  background: var(--dark-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.track-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.track-cover {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.track-cover-chains {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.track-cover-neon {
  background: linear-gradient(135deg, #0a0015 0%, #1a0050 50%, #2d0066 100%);
}

.track-cover-vinyl {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}

.track-card:hover .track-cover-vinyl {
  animation-play-state: running;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.track-cover-vinyl::after {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--dark);
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.track-cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.track-meta {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.track-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.track-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* ─── Section label ─────────────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ─── Divider sections ──────────────────────────────────── */

.music-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

/* ─── About ─────────────────────────────────────────────── */

.about-body {
  color: var(--text-muted);
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-body + .about-body {
  margin-top: 1rem;
}

/* ─── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .music-hero-bar span,
  .track-cover-vinyl { animation: none; }
}
