/* ========================================
   Marvin's Dream — Static Band Page
   Editorial / Cinematic Design
   ======================================== */

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

:root {
  --bg-dark: #0A0A0A;
  --bg-section: #0E0E0E;
  --bg-section-alt: #111111;
  --purple: #7B3FA0;
  --purple-deep: #5B2D8E;
  --purple-light: #A855F7;
  --gold: #E8A838;
  --gold-light: #F5C842;
  --accent: #C44DFF;
  --text: #E8E4ED;
  --text-muted: #9B93A8;
  --text-dim: #5E576A;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

.icon { display: inline-block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-heading--left {
  text-align: left;
}


/* ========================================
   Navigation — Split with Logo Center
   ======================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 64px;
  /* No background here — handled by pseudo-elements for the dome effect */
  background: none;
}

/* Flat bar background on both sides, stops before the logo dome */
.site-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: -2;
}

/* Center dome that swells around the logo */
.site-nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 140px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 0 0 50% 50%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: -1;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2.5rem;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}
.nav-left a:hover,
.nav-right a:hover {
  color: #fff;
}

/* Logo in nav center — 3x size, nestled in the dome */
.nav-logo {
  display: block;
  width: 240px;
  height: 144px;
  margin: 0 2rem;
  flex-shrink: 0;
  position: relative;
  top: 30px; /* push down so it fills the dome */
  z-index: 1;
}

.nav-logo-mask {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-light), var(--gold), var(--accent), var(--gold));
  background-size: 300% 300%;
  animation: logoShift 6s ease-in-out infinite;
  -webkit-mask-image: url('../assets/logo_mask.png');
  mask-image: url('../assets/logo_mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

@keyframes logoShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 2rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-links-mobile {
  display: none;
  list-style: none;
}


/* ========================================
   Hero — Cinematic Full Screen
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/band_members_all.jpg') center 30% / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10, 10, 10, 0.3) 0%,
      rgba(10, 10, 10, 0.1) 30%,
      rgba(10, 10, 10, 0.4) 60%,
      rgba(10, 10, 10, 0.97) 100%
    ),
    linear-gradient(to right,
      rgba(91, 45, 142, 0.15) 0%,
      transparent 50%,
      rgba(232, 168, 56, 0.1) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  margin-top: 4rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 200;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-line--accent {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 8.5rem);
  color: var(--gold);
  text-transform: none;
  letter-spacing: -0.02em;
  animation-delay: 0.35s;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease-out 0.65s both;
}
.hero-cta:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 1s both;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ========================================
   About — Editorial Two-Column
   ======================================== */

.section--about {
  background: var(--bg-dark);
  padding: 8rem 0;
}

.about-layout {
  display: flex;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-image-col {
  flex: 0 0 45%;
}

.about-image-frame {
  position: relative;
  border-radius: 200px 200px 20px 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-text-col {
  flex: 1;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  transition: letter-spacing 0.3s;
}
.about-read-more:hover {
  letter-spacing: 0.25em;
}


/* ========================================
   Media — Split with Masked Logo Center
   ======================================== */

.section--media {
  background: var(--bg-section);
  overflow: hidden;
}

.media-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.media-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 0 0 200px;
}

.media-col--right {
  text-align: right;
}

.media-col--right .media-link {
  flex-direction: row-reverse;
}

.media-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}
.media-link:hover {
  color: #fff;
  transform: translateX(4px);
}
.media-col--right .media-link:hover {
  transform: translateX(-4px);
}

.media-link-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.media-link-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Masked logo centerpiece in media section */
.media-logo-center {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
}

.media-logo-mask {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--accent) 25%,
    var(--gold) 50%,
    var(--purple-light) 75%,
    var(--gold-light) 100%
  );
  background-size: 400% 400%;
  animation: logoShift 8s ease-in-out infinite;
  -webkit-mask-image: url('../assets/logo_mask.png');
  mask-image: url('../assets/logo_mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}


/* ========================================
   Events
   ======================================== */

.section--events {
  background: var(--bg-section-alt);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s;
}
.event-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.event-flyer {
  flex-shrink: 0;
  width: 260px;
}
.event-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.event-date {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
}

.event-venue {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.event-address, .event-time {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.event-tickets {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  width: fit-content;
  transition: all 0.3s;
}
.event-tickets:hover {
  background: var(--gold);
  color: var(--bg-dark);
}


/* ========================================
   Releases
   ======================================== */

.section--releases {
  background: var(--bg-dark);
}

.release {
  margin-bottom: 4rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.release-header {
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
}

.release-cover {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.release-cover--placeholder {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple), var(--gold));
  background-size: 300% 300%;
  animation: gradientShift 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.release-cover-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.release-info {
  flex: 1;
}

.release-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.release-type {
  background: var(--purple);
  color: #fff;
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.release-date, .release-duration {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.release-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.release-streaming {
  display: flex;
  gap: 0.75rem;
}

.release-streaming-link .icon {
  width: 22px;
  height: 22px;
  fill: var(--text-dim);
  transition: fill 0.2s;
}
.release-streaming-link:hover .icon {
  fill: var(--gold);
}

.release-coming-soon {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-size: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* ========================================
   Player Component
   ======================================== */

.player {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.player-layout {
  display: flex;
  min-height: 280px;
}

.player-tracklist {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.player-tracks {
  list-style: none;
  padding: 1rem;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.player-track:hover {
  background: var(--surface-hover);
}

.player-track.active {
  background: rgba(123, 63, 160, 0.15);
}

.player-track-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.player-track-btn .icon {
  width: 14px;
  height: 14px;
  fill: var(--text-dim);
}
.player-track-btn .icon--pause {
  display: none;
}

.player-track.active .player-track-btn {
  border-color: var(--gold);
  background: var(--gold);
}
.player-track.active .player-track-btn .icon {
  fill: var(--bg-dark);
}

.player-track.playing .player-track-btn .icon--play { display: none; }
.player-track.playing .player-track-btn .icon--pause { display: block; }

.player-track-number {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 1.5em;
}

.player-track-title {
  font-size: 0.9rem;
  color: var(--text);
}

/* Lyrics panel */
.player-lyrics {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  max-height: 400px;
  display: none;
}
.player-lyrics.visible {
  display: block;
}

.player-song-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.player-lyrics-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  white-space: pre-wrap;
}

/* Progress bar */
.player-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: height 0.2s;
}
.player-progress:hover {
  height: 8px;
}

.player-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transition: width 0.1s linear;
}

.player-time {
  text-align: right;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}


/* ========================================
   Persistent Footer Media Bar
   ======================================== */

.media-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0;
}

.media-footer-inner {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
}

.media-footer-link {
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}
.media-footer-link:hover {
  transform: translateY(-2px);
}

.media-footer-link .icon {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
  transition: fill 0.2s;
}
.media-footer-link:hover .icon {
  fill: var(--gold);
}


/* ========================================
   Responsive
   ======================================== */

body {
  padding-bottom: 48px;
}

@media (max-width: 900px) {

  /* Nav — collapse dome on mobile */
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo {
    margin: 0 auto;
    width: 120px;
    height: 72px;
    top: 0;
  }
  .site-nav::after {
    width: 180px;
    height: 90px;
  }
  .nav-links-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    display: none;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links-mobile.open { display: flex; }
  .nav-links-mobile a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }

  /* Hero */
  .hero-bg { background-attachment: scroll; }
  .hero-title-line { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-title-line--accent { font-size: clamp(3rem, 14vw, 5rem); }

  /* Sections */
  .section { padding: 5rem 0; }
  .section-heading { font-size: 2.2rem; }

  /* About */
  .about-layout {
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
  }
  .about-image-col { flex: none; width: 80%; max-width: 400px; margin: 0 auto; }

  /* Media */
  .media-split {
    flex-direction: column;
    gap: 2.5rem;
  }
  .media-col { flex: none; width: 100%; align-items: center; }
  .media-col--right { text-align: center; }
  .media-col--right .media-link { flex-direction: row; }
  .media-logo-center { width: 180px; height: 180px; }

  /* Releases */
  .release-header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .release-cover {
    width: 100%;
    height: 180px;
  }

  /* Player */
  .player-layout {
    flex-direction: column;
  }
  .player-tracklist {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .player-lyrics {
    max-height: 300px;
  }

  /* Events */
  .event-card {
    flex-direction: column;
  }
  .event-flyer {
    width: 100%;
    max-height: 350px;
  }
  .event-info {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .media-footer-inner { gap: 1rem; }
  .media-footer-link .icon { width: 16px; height: 16px; }
  .hero-scroll-hint { display: none; }
}
