/*! SONIC SNOWFLAKE RECORDS — Shared Components */

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: var(--z-progress); background: rgba(255,255,255,.05); pointer-events: none;
}
.scroll-progress::before {
  content: ''; display: block; height: 100%; width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--neon), var(--gold));
  box-shadow: 0 0 12px rgba(181,131,255,.7);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease-soft), height var(--dur-med) var(--ease-soft), border-color var(--dur-med) ease;
}
.nav.is-solid {
  height: var(--nav-h-solid);
  background: rgba(6,3,9,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 10px rgba(181,131,255,.55)); }
.nav__word { font-family: var(--font-display); font-weight: 800; font-size: .98rem; letter-spacing: .02em; line-height: 1; }
.nav__word span { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .58rem; letter-spacing: .32em; color: var(--mist); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mist); position: relative; padding-bottom: 4px; transition: color var(--dur-fast) ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--neon); box-shadow: 0 0 8px rgba(181,131,255,.85); transition: right var(--dur-med) var(--ease-out);
}
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a.is-active { color: var(--pearl); }
.nav__links a.is-active::after { right: 0; }

.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__cta {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--void); background: var(--neon-bright); padding: 9px 18px; border-radius: 999px; font-weight: 700;
  white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--glow-neon); }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--pearl); align-items: center; justify-content: center; position: relative; z-index: 5;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.nav__toggle span::before { position: absolute; transform: translateY(-6px); }
.nav__toggle span::after { position: absolute; transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); height: 100vh;
    background: var(--void); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform var(--dur-med) var(--ease-out);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.05rem; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 600; padding: 15px 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--neon); color: var(--void); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-neon); }
.btn--gold { background: var(--gold); color: #20140A; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }
.btn--ghost { background: transparent; color: var(--pearl); border: 1px solid rgba(246,244,251,.28); }
.btn--ghost:hover { border-color: var(--pearl); transform: translateY(-2px); }
.btn--small { padding: 9px 18px; font-size: .72rem; }
.btn--outline-neon { background: transparent; color: var(--neon-bright); border: 1px solid rgba(181,131,255,.45); }
.btn--outline-neon:hover { border-color: var(--neon-bright); box-shadow: var(--glow-neon-soft); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .74rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--neon-bright); border: 1px solid rgba(181,131,255,.35); padding: 7px 13px; border-radius: 999px;
  transition: box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease; display: inline-block;
}
.tag:hover { border-color: var(--neon-bright); box-shadow: var(--glow-neon-soft); }
.tag--gold { color: var(--gold-bright); border-color: rgba(232,178,76,.4); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--void); background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  padding: 7px 14px 7px 10px; border-radius: 999px; font-weight: 700;
}
.badge svg { width: 13px; height: 13px; }

/* ============================================================
   GLASS PANEL
   ============================================================ */
.glass {
  background: rgba(15, 10, 26, .55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

/* ============================================================
   TRACK ROW — reused on artist pages + the Music hub
   ============================================================ */
.tracklist { display: flex; flex-direction: column; }
.track-row {
  display: flex; align-items: center; gap: 18px; padding: 15px 6px;
  border-bottom: 1px solid var(--line-soft); position: relative; cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.track-row:hover, .track-row:focus-within { background: rgba(181,131,255,.06); }
.track-row__select { all: unset; position: absolute; inset: 0; cursor: pointer; }
.track-row__thumb {
  width: 46px; height: 46px; border-radius: 8px; overflow: hidden; flex: none;
  border: 1px solid var(--line); position: relative; background: var(--panel-2);
}
.track-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.track-row__num {
  width: 46px; text-align: center; font-family: var(--font-mono); font-size: .78rem; color: var(--mist-dim); flex: none;
}
.track-row__play {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--neon-bright);
  pointer-events: none;
}
.track-row__play svg { width: 14px; height: 14px; }
.track-row__play .icon-pause { display: none; }
.track-row.is-active .track-row__num { display: none; }
.track-row.is-active .track-row__play { display: flex; }
.track-row.is-playing .track-row__play .icon-play { display: none; }
.track-row.is-playing .track-row__play .icon-pause { display: block; }
.track-row__body { flex: 1; min-width: 0; z-index: 1; pointer-events: none; }
.track-row__title {
  font-weight: 700; color: var(--mist); font-size: .98rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-fast) ease;
}
.track-row.is-active .track-row__title { color: var(--pearl); }
.track-row__artist {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--mist-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px;
}
.track-row__dur { font-family: var(--font-mono); font-size: .74rem; color: var(--mist-dim); flex: none; z-index: 1; }
.track-row__eq { display: flex; align-items: flex-end; gap: 2px; width: 14px; height: 14px; flex: none; z-index: 1; }
.track-row__eq span { width: 3px; background: var(--neon-bright); border-radius: 1px; height: 30%; }
.track-row.is-playing .track-row__eq span { animation: eqBounce 1s ease-in-out infinite; }
.track-row__eq span:nth-child(2) { animation-delay: .15s !important; }
.track-row__eq span:nth-child(3) { animation-delay: .3s !important; }

/* ============================================================
   ROSTER / ARTIST CARD
   ============================================================ */
.roster-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) ease, border-color var(--dur-med) ease;
}
.roster-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--card-accent, var(--neon)) 55%, transparent);
  box-shadow: 0 26px 60px -24px color-mix(in srgb, var(--card-accent, var(--neon)) 50%, transparent);
}
.roster-card__art { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.roster-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.roster-card:hover .roster-card__art img { transform: scale(1.06); }
.roster-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,3,9,.94) 10%, transparent 60%); }
.roster-card__body { padding: 22px 24px 26px; }
.roster-card__eyebrow { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--neon-bright); margin-bottom: 10px; }
.roster-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.roster-card__desc { color: var(--mist); font-size: .92rem; line-height: 1.6; }
.roster-card__cta { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pearl); }
.roster-card__cta svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.roster-card:hover .roster-card__cta svg { transform: translateX(4px); }

/* ============================================================
   RELEASE CARD — reused on Home ("Latest Drops") + Music hub
   ============================================================ */
.release-card { display: flex; flex-direction: column; }
.release-card__art {
  position: relative; display: block; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 16px;
}
.release-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s ease; }
.release-card__art::after { content: ''; position: absolute; inset: 0; background: rgba(6,3,9,0); transition: background var(--dur-fast) ease; }
.release-card__art:hover::after { background: rgba(6,3,9,.35); }
.release-card__art:hover img { transform: scale(1.05); }
.release-card__play {
  position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--neon); color: var(--void); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.6), var(--glow-neon-soft);
  transform: translateY(8px) scale(.9); opacity: 0; transition: transform var(--dur-fast) var(--ease-spring), opacity var(--dur-fast) ease;
}
.release-card__art:hover .release-card__play, .release-card__art:focus-visible .release-card__play { opacity: 1; transform: none; }
.release-card__play svg { width: 18px; height: 18px; }
.release-card__art.is-playing .release-card__play { opacity: 1; transform: none; background: var(--gold); }
.release-card__art.is-playing .release-card__play .icon-play { display: none; }
.release-card__art.is-playing .release-card__play .icon-pause { display: block; }
.release-card__play .icon-pause { display: none; }
.release-card__type { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist-dim); margin-bottom: 6px; }
.release-card__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; margin-bottom: 3px; }
.release-card__artist { font-size: .88rem; color: var(--mist); }

/* ============================================================
   ART PLACEHOLDERS — see SSR.util.artSlot() in helpers.js
   ============================================================ */
.art-slot { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--panel-2); display: block; }
.art-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-slot__placeholder { display: none; }
.art-slot.is-missing {
  border: 1px dashed rgba(181,131,255,.4);
  background: repeating-linear-gradient(135deg, rgba(181,131,255,.05) 0 10px, rgba(181,131,255,.1) 10px 20px), var(--panel-2);
}
.art-slot.is-missing .art-slot__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; gap: 7px;
}
.art-slot__placeholder svg { width: 26px; height: 26px; color: var(--neon-bright); opacity: .6; }
.art-slot__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--neon-bright); }
.art-slot__path { font-family: var(--font-mono); font-size: .64rem; color: var(--mist); word-break: break-all; max-width: 90%; }
.art-slot__spec { font-family: var(--font-mono); font-size: .6rem; color: var(--mist-dim); }

.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   LIGHTBOX (image viewer)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  background: rgba(3,1,6,.92); backdrop-filter: blur(6px); padding: min(6vh,60px) min(6vw,60px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { position: relative; max-width: min(92vw,900px); max-height: 88vh; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.lightbox__img { max-width: 100%; max-height: 72vh; width: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(181,131,255,.35), 0 40px 90px -20px rgba(0,0,0,.7), 0 0 60px rgba(181,131,255,.16); animation: lbIn .35s var(--ease-out); }
.lightbox__caption { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); display: flex; align-items: center; gap: 14px; }
.lightbox__close, .lightbox__nav {
  position: fixed; background: rgba(15,10,26,.78); border: 1px solid var(--line); color: var(--pearl);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease;
}
.lightbox__close { top: clamp(10px,3vh,30px); right: clamp(10px,3vw,30px); width: 44px; height: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox__nav--prev { left: clamp(8px,3vw,40px); }
.lightbox__nav--next { right: clamp(8px,3vw,40px); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--void); border-color: rgba(181,131,255,.5); }
.lightbox__close svg, .lightbox__nav svg { width: 18px; height: 18px; }
body.lb-open { overflow: hidden; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-host {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translateX(-50%);
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: rgba(15,10,26,.92); border: 1px solid var(--line); backdrop-filter: blur(10px);
  color: var(--pearl); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.6);
  animation: toastIn .3s var(--ease-out);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--void-deep); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 34px; height: 34px; }
.site-footer__brand div { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.site-footer__brand span { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .3em; color: var(--mist); margin-top: 3px; }
.site-footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.site-footer__col h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; }
.site-footer__col a, .site-footer__col p { display: block; color: var(--mist); font-size: .88rem; margin-bottom: 10px; transition: color var(--dur-fast) ease; }
.site-footer__col a:hover { color: var(--neon-bright); }
.site-footer__legal { margin-top: 28px; color: var(--mist-dim); font-size: .78rem; max-width: 80ch; }

/* ============================================================
   SNOW-GATE — Wallet Connect Modal
   (Injected into document.body by snowgate.js; kept global here
   since it can be triggered from any page, not just Community.)
   ============================================================ */
.snowgate-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(2, 1, 3, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: snowgateFadeIn var(--dur-fast) var(--ease-out);
}
@keyframes snowgateFadeIn { from { opacity: 0; } to { opacity: 1; } }
.snowgate-modal {
  position: relative; width: 100%; max-width: 380px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.4rem); box-shadow: var(--glow-neon-lg);
}
.snowgate-modal h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.snowgate-step { color: var(--mist); font-size: .88rem; margin-bottom: 18px; }
.snowgate-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--pearl); font-size: 1.1rem;
  line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast) ease;
}
.snowgate-close:hover { border-color: var(--neon); }
.snowgate-qr { display: flex; justify-content: center; margin: 0 auto 16px; background: #fff; border-radius: var(--radius-sm); padding: 12px; max-width: 220px; }
.snowgate-qr svg { display: block; width: 100%; height: auto; }
.snowgate-qr-fallback { color: var(--mist-dim); font-size: .84rem; padding: 30px 10px; }
.snowgate-copy {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--neon-bright); border-radius: 999px;
  padding: 10px 20px; cursor: pointer; transition: border-color var(--dur-fast) ease;
}
.snowgate-copy:hover { border-color: var(--neon); }
.snowgate-status { margin-top: 16px; color: var(--mist); font-size: .86rem; min-height: 1.3em; }
.snowgate-disclaimer { margin-top: 16px; color: var(--mist-dim); font-size: .74rem; line-height: 1.5; }
