/* ==========================================================
   Rising Love — legacy page re-skin
   Load order on inner pages: styles.css → site.css → theme.css
   Maps the older page templates (artist pages, booking, legal,
   links pages, release pages) onto the new design system.
   ========================================================== */

/* ---------- Remap legacy tokens ---------- */
:root {
  --accent: var(--magenta);
  --bg-main: var(--ink);
  --bg-soft: var(--ink-2);
  --bg-elev: var(--ink-3);
  --panel: var(--ink-2);
  --panel-2: var(--ink-3);
  --text: var(--cream);
  --muted: var(--cream-muted);
  --line: var(--line-dark);
  --border-soft: var(--line-dark);
  --radius: 24px;
  --radius-sm: 16px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(48rem 34rem at 0% 0%, rgba(255, 46, 99, 0.08), transparent 70%),
    radial-gradient(48rem 34rem at 100% 30%, rgba(124, 58, 237, 0.09), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}
body::before { display: none !important; }

.site-frame { padding: 0; }
.site-frame > main {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) var(--gutter) clamp(48px, 6vw, 88px);
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--sans); font-weight: 800; color: var(--cream); }
h1 { letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; }
h2 { letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch; }
h3 { letter-spacing: -0.02em; }

.section-label,
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream-muted);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.section-label::before,
.eyebrow::before {
  content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--grad);
}

.lede, .panel p, .clean-list { color: var(--cream-muted); }
.panel p strong, .clean-list strong { color: var(--cream); }

.text-link { border-bottom-color: rgba(255, 46, 99, 0.5); }
.text-link:hover { color: var(--magenta-soft); border-color: var(--magenta-soft); }
.panel a:not([class]) { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(255, 46, 99, 0.5); text-underline-offset: 3px; }

/* ---------- Surfaces ---------- */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  padding: clamp(22px, 3.5vw, 40px);
}
.split-section { gap: 16px; margin-top: 16px; }
section + section,
.split-section + .panel,
.panel + .split-section { margin-top: 16px; }

.card {
  background: var(--ink-3);
  border-color: var(--line-dark);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 46, 99, 0.3); box-shadow: 0 24px 44px -24px rgba(255, 46, 99, 0.35); }
.card-tag { background: var(--grad); letter-spacing: 0.1em; }

.artist-hero-image,
.artist-gallery-item,
.artist-roster-visual,
.feature-art { border-radius: 20px; overflow: hidden; }

.artist-roster-visual {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-color: var(--line-dark);
}
.artist-roster-cta { border-bottom-color: rgba(255, 46, 99, 0.5); }
.artist-roster-link:hover .artist-roster-cta { color: var(--magenta-soft); border-color: var(--magenta-soft); }

/* Manifesto strip: quieter, gradient text */
.label-statement { background: transparent; border-color: transparent; text-align: center; }
.label-manifesto {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--rose), var(--magenta-soft) 55%, #b48cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.button {
  min-height: 48px; padding: 0 22px;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark {
  background: var(--magenta); color: #fff;
  box-shadow: 0 12px 24px -12px rgba(255, 46, 99, 0.75);
}
.button-dark:hover { background: var(--magenta-dark); }
.button-outline { border-color: var(--hair); color: var(--cream); }
.button-outline:hover { border-color: var(--hair-strong); background: var(--tint); }
.button:disabled { opacity: 0.6; transform: none; cursor: default; }

/* ---------- Forms ---------- */
.fan-signup-form input[type="text"],
.fan-signup-form input[type="email"],
.fan-signup-form input[type="tel"],
.newsletter-form input,
.booking-field input,
.booking-field textarea,
.booking-field select,
.booking-field-full input,
.booking-field-full textarea {
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--cream);
  font-family: var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fan-signup-form input:focus,
.newsletter-form input:focus,
.booking-field input:focus,
.booking-field textarea:focus,
.booking-field select:focus,
.booking-field-full input:focus,
.booking-field-full textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.18);
}
.booking-field label,
.booking-field-full label { color: var(--cream); font-weight: 700; letter-spacing: 0; text-transform: none; }
.checkbox-field input[type="checkbox"] { accent-color: var(--magenta); }
.checkbox-field a { color: var(--cream); }
.form-message { color: var(--gold); }

/* ---------- Links pages (link-in-bio + releases) ---------- */
.links-page { background:
    radial-gradient(40rem 30rem at 50% -10%, rgba(124, 58, 237, 0.2), transparent 70%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(255, 46, 99, 0.14), transparent 70%),
    var(--ink); }
.links-title { letter-spacing: -0.04em; }
.links-button:not(.platform-card):not(.featured-release) {
  border-radius: 16px;
  background: var(--panel-bg);
  border-color: var(--line-dark);
  font-family: var(--sans);
}
.links-button:not(.platform-card):not(.featured-release):hover {
  background: var(--ink-3);
  border-color: rgba(255, 46, 99, 0.35);
}
.links-button.primary:not(.platform-card) {
  background: var(--magenta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(255, 46, 99, 0.8);
}
.links-button.primary:not(.platform-card):hover { background: var(--magenta-dark); border-color: transparent; }
.links-button.secondary { opacity: 0.9; }
.links-widget-block {
  background: var(--panel-bg);
  border-color: var(--line-dark);
  border-radius: 20px;
}
.featured-release { border-color: rgba(255, 46, 99, 0.3); }

/* ---------- Legacy footer (links pages keep the compact footer) ---------- */
.site-footer { font-family: var(--sans); }
.footer-links a:hover { color: var(--magenta-soft); }
.heart { color: var(--magenta); }

/* ---------- Release pages stay dark in both modes ----------
   Their translucent cards and artwork backgrounds are designed for dark. */
body.release-page {
  color-scheme: dark;
  --ink: #131216;
  --ink-2: #1b1a20;
  --ink-3: #24222b;
  --cream: #f3efe7;
  --cream-muted: #b4aea4;
  --line-dark: rgba(255, 255, 255, 0.09);
  --magenta-soft: #ff7aa0;
  --hair: rgba(255, 255, 255, 0.22);
  --hair-strong: rgba(255, 255, 255, 0.45);
  --tint: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.14);
  --panel-bg: linear-gradient(180deg, rgba(27, 26, 32, 0.92), rgba(22, 21, 26, 0.92));
  --icon-filter: invert(1);
  --logo-filter: none;
  --accent-text: linear-gradient(120deg, var(--rose), #ff7aa0 55%, #b48cff);
  /* legacy tokens re-resolved against the dark values above */
  --text: var(--cream);
  --muted: var(--cream-muted);
  --panel: var(--ink-2);
  --panel-2: var(--ink-3);
  --line: var(--line-dark);
  --border-soft: var(--line-dark);
}

/* ---------- Readable placeholder text in signup / booking forms ---------- */
.fan-signup-form input::placeholder,
.newsletter-form input::placeholder,
.links-signup-form input::placeholder,
.booking-field input::placeholder,
.booking-field textarea::placeholder,
.booking-field-full input::placeholder,
.booking-field-full textarea::placeholder {
  color: var(--cream-muted);
  opacity: 1;
}

/* ==========================================================
   Brand-styled service buttons on artist links pages.
   Matched by link address, so any new Spotify/Instagram/etc. link
   picks up its brand color and icon automatically.
   ========================================================== */
.links-page .links-button:is(
  [href*="spotify.com"], [href*="music.apple.com"], [href*="youtube.com"],
  [href*="music.amazon.com"], [href*="pandora.com"], [href*="tidal.com"],
  [href*="deezer.com"], [href*="audiomack.com"], [href*="soundcloud.com"],
  [href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]
):not(.primary):not(.featured-release):not(.platform-card) {
  position: relative;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: var(--brand-bg);
  color: var(--brand-fg);
  opacity: 1;
  font-size: 1rem;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.links-page .links-button:is(
  [href*="spotify.com"], [href*="music.apple.com"], [href*="youtube.com"],
  [href*="music.amazon.com"], [href*="pandora.com"], [href*="tidal.com"],
  [href*="deezer.com"], [href*="audiomack.com"], [href*="soundcloud.com"],
  [href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]
):not(.primary):not(.featured-release):not(.platform-card):hover {
  background: var(--brand-bg);
  border-color: transparent;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.6);
}
/* service icon */
.links-page .links-button:is(
  [href*="spotify.com"], [href*="music.apple.com"], [href*="youtube.com"],
  [href*="music.amazon.com"], [href*="pandora.com"], [href*="tidal.com"],
  [href*="deezer.com"], [href*="audiomack.com"], [href*="soundcloud.com"],
  [href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]
):not(.primary):not(.featured-release):not(.platform-card)::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--brand-icon) center / contain no-repeat;
  mask: var(--brand-icon) center / contain no-repeat;
}
/* "opens elsewhere" arrow on the right */
.links-page .links-button:is(
  [href*="spotify.com"], [href*="music.apple.com"], [href*="youtube.com"],
  [href*="music.amazon.com"], [href*="pandora.com"], [href*="tidal.com"],
  [href*="deezer.com"], [href*="audiomack.com"], [href*="soundcloud.com"],
  [href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]
):not(.primary):not(.featured-release):not(.platform-card)::after {
  content: "↗";
  margin-left: auto;
  opacity: 0.75;
  font-weight: 700;
}

/* generic music-note icon for services without a logo file yet */
.links-page .links-button {
  --note-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18V5l12-2v13' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}

.links-page .links-button[href*="spotify.com"]       { --brand-bg: #1ed760; --brand-fg: #0b0b0b; --brand-icon: url("/assets/img/icons/dsp/spotify.svg"); }
.links-page .links-button[href*="music.apple.com"]   { --brand-bg: linear-gradient(135deg, #fa243c, #fb5c74); --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/apple-music.svg"); }
.links-page .links-button[href*="youtube.com"]       { --brand-bg: #ff0000; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/social/youtube.svg"); }
.links-page .links-button[href*="music.youtube.com"] { --brand-bg: #ff0000; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/youtube-music.svg"); }
.links-page .links-button[href*="music.amazon.com"]  { --brand-bg: #25d1da; --brand-fg: #06262b; --brand-icon: url("/assets/img/icons/dsp/amazon-music.svg"); }
.links-page .links-button[href*="pandora.com"]       { --brand-bg: #3668ff; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/pandora.svg"); }
.links-page .links-button[href*="tidal.com"]         { --brand-bg: #000; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/tidal.svg"); }
.links-page .links-button[href*="deezer.com"]        { --brand-bg: #a238ff; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/deezer.svg"); }
.links-page .links-button[href*="audiomack.com"]     { --brand-bg: #ffa200; --brand-fg: #1a1204; --brand-icon: url("/assets/img/icons/dsp/audiomack.svg"); }
.links-page .links-button[href*="soundcloud.com"]    { --brand-bg: #ff5500; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/dsp/soundcloud.svg"); }
.links-page .links-button[href*="instagram.com"]     { --brand-bg: linear-gradient(45deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); --brand-fg: #fff; --brand-icon: url("/assets/img/icons/social/instagram.svg"); }
.links-page .links-button[href*="facebook.com"]      { --brand-bg: #1877f2; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/social/facebook.svg"); }
.links-page .links-button[href*="tiktok.com"]        { --brand-bg: #000; --brand-fg: #fff; --brand-icon: url("/assets/img/icons/social/tiktok.svg"); }
/* black buttons need an edge on the dark page */
.links-page .links-button:is([href*="tidal.com"], [href*="tiktok.com"]):not(.primary) { border-color: rgba(255, 255, 255, 0.22) !important; }

/* Compact footer on links/release pages: readable in light mode too */
.links-footer .footer-brand,
.links-footer .footer-tagline,
.links-footer .footer-copyright,
.links-footer-brand,
.links-disclaimer { color: var(--cream-muted); }

/* Link-in-bio footer: brand, tagline, and the radiating heart, centered */
.links-footer { display: grid; justify-items: center; gap: 6px; }
.links-footer-tagline {
  margin: 0; color: var(--cream-muted);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.links-footer-tagline .tm { font-size: 0.7em; vertical-align: super; letter-spacing: 0; }
.links-footer-heart { margin: 18px 0 6px; margin-left: 0; font-size: 1.15rem; }
