/* ─────────────────────────────────────────────
   artist-profile.css — public per-artist profile page (/artists/:slug)
   Scoped to .artist-profile-page (body class)
   Mirrors the Afro-futurist palette used by artists.css / artist.css.
───────────────────────────────────────────── */

/* ── Custom properties (mirrors artists.css + artist.css) ── */
:root {
  --gold:        #d4a853;
  --gold-light:  #f0c060;
  --purple:      #1a0a2e;
  --purple-mid:  #2d1560;
  --purple-hi:   #7c3aed;
  --dark:        #0a0612;
  --text:        #f0ece8;
  --text-muted:  #a09090;
  --card-bg:     rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --radius:      12px;
  --radius-lg:   20px;
  --gutter:      clamp(1rem, 4vw, 2rem);
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.artist-profile-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Container / Section ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple-hi));
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ── Nav (mirrors artists.css .roster-nav) ── */
.profile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(10, 6, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }
.nav-active { color: var(--gold) !important; }

/* ── Back link (small text link near top of content) ── */
.back-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); }

.back-link-on-hero {
  margin-top: 1rem;
  margin-bottom: 0;
  color: rgba(240,236,232,0.85);
}

/* ── Profile hero (mirrors artists.css .press-hero) ── */
.profile-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem var(--gutter) 5rem;
  overflow: hidden;
  text-align: center;
}

.profile-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.3) saturate(1.2);
  transform: scale(1.05);
}

.profile-hero .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,6,18,0.3) 0%,
    rgba(10,6,18,0.2) 40%,
    rgba(10,6,18,0.95) 100%
  );
}

.profile-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 30%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 80% 70%, rgba(212,168,83,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.profile-hero .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(212,168,83,0.3);
  margin-bottom: 1rem;
}

.profile-photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-hi) 50%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(212,168,83,0.5);
  box-shadow: 0 0 40px rgba(124,58,237,0.4), 0 0 80px rgba(212,168,83,0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.profile-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: repeating-linear-gradient(
    60deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.04) 8px,
    rgba(255,255,255,0.04) 10px
  );
}

.profile-photo-placeholder .placeholder-initials {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(212,168,83,0.8);
}

.epk-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(212,168,83,0.08);
}

.profile-hero-name {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--purple-hi) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Bio ── */
.profile-bio-section {
  background: linear-gradient(to bottom, var(--dark), rgba(26,10,46,0.6));
}

.profile-bio p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.profile-bio p:last-child { margin-bottom: 0; }

/* ── EPK ── */
.profile-epk-section { background: rgba(26,10,46,0.4); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple-hi) 100%);
  border-radius: 50px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.epk-cta { display: inline-flex; }

.card-epk-empty {
  display: inline-flex;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(212,168,83,0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Streaming ── */
.streaming-section { background: rgba(26,10,46,0.4); }

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stream-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.stream-card:hover {
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
}

.stream-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stream-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.spotify-icon { color: #1db954; }
.apple-icon   { color: #fc3c44; }
.yt-icon      { color: #ff0000; }
.sc-icon      { color: #ff5500; }

.stream-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.spotify-embed {
  border-radius: 10px;
  display: block;
}

.stream-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
}

.stream-link-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.apple-btn { background: #fc3c44; color: #fff; }
.yt-btn    { background: #ff0000; color: #fff; }
.sc-btn    { background: #ff5500; color: #fff; }

/* ── Social ── */
.social-section { background: var(--dark); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-width: 220px;
}

.social-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,168,83,0.3);
  transform: translateY(-2px);
}

.social-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--gold);
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.social-platform {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-handle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Not-found card (reuses roster-empty pattern) ── */
.profile-section { background: var(--dark); padding-top: 8rem; }

.not-found-card {
  background: var(--card-bg);
  border: 1px dashed rgba(212,168,83,0.25);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto;
}

.placeholder-icon {
  font-size: 2rem;
  color: rgba(212,168,83,0.35);
}

.placeholder-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.placeholder-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  opacity: 0.75;
  max-width: 420px;
  line-height: 1.7;
}

/* ── Footer ── */
.profile-footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
  margin-top: 2rem;
  background: var(--dark);
}

.profile-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }
.footer-nav-active { color: var(--gold) !important; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .profile-hero { padding: 7rem var(--gutter) 3rem; min-height: 70vh; }
  .profile-photo, .profile-photo-placeholder { width: 140px; height: 140px; }
  .stream-grid { grid-template-columns: 1fr; }
  .social-row { flex-direction: column; }
  .social-card { min-width: unset; width: 100%; }
  .nav-links { gap: 1rem; }
  .nav-link { font-size: 0.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
