/* =================================================================
   GandiWave — style.css
   Palette: wine red (lead/hero), plum purple (header/footer),
   warm cream (content), muted gold (signature accent)
   ================================================================= */

:root{
  /* Core palette */
  --wine:        #4A1620;
  --wine-deep:   #2A0C13;
  --plum:        #2B1830;
  --plum-light:  #402340;
  --cream:       #F3ECE2;
  --cream-alt:   #EAE0CF;
  --ink:         #24141A;
  --muted:       #7C6B63;
  --border:      #E2D5C4;
  --gold:        #B8863C;
  --gold-soft:   #D9B87A;
  --clay:        #A13B3F;
  --clay-deep:   #7E2B2E;
  --on-dark:     #F3ECE2;
  --on-dark-muted: #C9B9AE;

  /* Aliases used by existing markup */
  --bg:     var(--cream);
  --text:   var(--ink);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(42, 12, 19, 0.10);
  --shadow-lg: 0 16px 40px rgba(42, 12, 19, 0.18);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

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

.container{
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  letter-spacing: -0.01em;
}

.mono{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--gold);
  color: var(--wine-deep);
}
.btn-primary:hover{ background: var(--gold-soft); box-shadow: var(--shadow); }

.btn-outline{
  background: transparent;
  border-color: rgba(243, 236, 226, 0.4);
  color: var(--on-dark);
}
.btn-outline:hover{ border-color: var(--gold-soft); color: var(--gold-soft); }

/* Outline button used on the (light-bg) song page */
.player-info .btn-outline{
  border-color: var(--clay);
  color: var(--clay-deep);
}
.player-info .btn-outline:hover{ background: var(--clay); color: var(--on-dark); }

.btn-icon{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--clay-deep);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-icon:hover{ background: var(--clay); color: var(--on-dark); transform: translateY(-1px); }
.btn-icon.play-main{
  width: 54px; height: 54px;
  background: var(--clay);
  color: var(--on-dark);
  font-size: 18px;
  border: none;
}
.btn-icon.play-main:hover{ background: var(--clay-deep); }

/* -----------------------------------------------------------------
   Header
   ----------------------------------------------------------------- */
.site-header{
  background: var(--plum);
  border-bottom: 1px solid rgba(243, 236, 226, 0.08);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--on-dark);
}
.wave-mark{
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.wave-mark span{
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
  display: block;
}
.wave-mark span:nth-child(1){ height: 6px; }
.wave-mark span:nth-child(2){ height: 16px; }
.wave-mark span:nth-child(3){ height: 10px; }
.wave-mark span:nth-child(4){ height: 13px; }

.nav-links{
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a{
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover{ color: var(--on-dark); border-color: var(--gold); }

.nav-search{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-muted);
  font-size: 13px;
  background: rgba(243, 236, 226, 0.06);
  border: 1px solid rgba(243, 236, 226, 0.14);
  padding: 9px 14px;
  border-radius: 999px;
  min-width: 190px;
}

/* Hamburger icon — header.php's own inline <style> sets this to
   var(--text), which is now a dark ink color and invisible against
   the dark purple header. This selector has higher specificity
   (two classes vs one) so it wins regardless of source order. */
.site-header .nav-mobile-toggle span{
  background: var(--on-dark);
}

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */
.site-footer{
  background: var(--plum);
  border-top: 1px solid var(--plum-light);
  margin-top: 60px;
}
.footer-grid{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 24px;
  color: var(--on-dark-muted);
  font-size: 13px;
}
.footer-links{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a{
  color: var(--on-dark-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}
.footer-links a:hover{ color: var(--gold-soft); }

/* -----------------------------------------------------------------
   Section divider — the signature element: a small repeating
   pulse/diamond motif, part waveform tick, part textile trim.
   ----------------------------------------------------------------- */
.gw-divider{
  height: 14px;
  background-image: radial-gradient(var(--gold) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  background-position: center;
  opacity: 0.55;
}
.gw-divider.on-dark{ opacity: 0.35; }

/* -----------------------------------------------------------------
   Hero
   ----------------------------------------------------------------- */
.hero{
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--wine) 0%, var(--wine-deep) 70%);
  color: var(--on-dark);
  padding: 40px 0 24px;
  overflow: hidden;
}
.hero-eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.hero h1{
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 18ch;
  color: var(--on-dark);
}
.hero h1 .accent{ color: var(--gold); }
.hero p{
  color: var(--on-dark-muted);
  font-size: 14px;
  max-width: 46ch;
  margin: 10px 0 20px;
}
.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .btn{
  padding: 9px 18px;
  font-size: 13px;
}
.hero-bars{
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 24px;
  opacity: 0.3;
}
.hero-bars span{
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: gw-pulse 2.4s ease-in-out infinite;
}
@keyframes gw-pulse{
  0%, 100% { transform: scaleY(0.85); }
  50% { transform: scaleY(1); }
}

/* -----------------------------------------------------------------
   Content sections
   ----------------------------------------------------------------- */
.section{
  padding: 56px 0;
  background: var(--cream);
}
.section.alt{ background: var(--cream-alt); }
.section.dark{
  background: linear-gradient(180deg, var(--plum) 0%, #21121F 100%);
  color: var(--on-dark);
}
.section.dark .section-head a{ color: var(--gold-soft); }
.section.dark p{ color: var(--on-dark-muted); }

.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-head h2{
  font-size: 24px;
  font-weight: 700;
  color: var(--clay-deep);
}
.section.dark .section-head h2{ color: var(--gold); }
.section-head a{
  font-size: 13px;
  font-weight: 600;
  color: var(--clay);
  white-space: nowrap;
}
.section-head a:hover{ color: var(--clay-deep); text-decoration: underline; }

/* -----------------------------------------------------------------
   Song grid / cards
   ----------------------------------------------------------------- */
.song-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 860px){
  .song-grid{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 560px){
  .song-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

.find-more{
  text-align: center;
  margin-top: 34px;
}
.btn-find{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border: 1.5px solid var(--clay);
  color: var(--clay-deep);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-find:hover{ background: var(--clay); color: var(--on-dark); transform: translateY(-1px); }
.section.dark .btn-find{ border-color: var(--gold); color: var(--gold-soft); }
.section.dark .btn-find:hover{ background: var(--gold); color: var(--wine-deep); }
.song-card{
  background: var(--cream);
}
.section.alt .song-card{ background: var(--cream); }
.section.dark .song-card{ background: rgba(243, 236, 226, 0.04); border-radius: var(--radius); padding: 10px; }

.cover-wrap{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  background: var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.song-card a:hover .cover-wrap{ box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cover-wrap img{ width: 100%; height: 100%; object-fit: cover; }

.play-btn{
  position: absolute;
  bottom: 10px; right: 10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.song-card a:hover .play-btn{ opacity: 1; transform: translateY(0); }

.song-card h3{
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section.dark .song-card h3{ color: var(--on-dark); }

.artist-name{
  font-size: 13px;
  margin-top: 3px;
}
.artist-name a{ color: var(--clay); }
.artist-name a:hover{ text-decoration: underline; }
.section.dark .artist-name a{ color: var(--gold-soft); }

.meta-row{
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.section.dark .meta-row .mono{ color: var(--on-dark-muted); }

/* -----------------------------------------------------------------
   Artist grid / cards
   ----------------------------------------------------------------- */
.artist-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 860px){
  .artist-grid{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 560px){
  .artist-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.artist-card{
  text-align: center;
}
.avatar{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.artist-card:hover .avatar{ box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.avatar img{ width: 100%; height: 100%; object-fit: cover; }

.artist-card h3{
  font-size: 15px;
  margin-top: 12px;
  color: var(--ink);
}
.section.dark .artist-card h3{ color: var(--on-dark); }

.verified-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--on-dark);
  font-size: 10px;
  margin-left: 5px;
}

.listeners{
  margin-top: 4px;
}

/* -----------------------------------------------------------------
   Song player page
   ----------------------------------------------------------------- */
.player-page{ padding: 44px 0 60px; }
.player-layout{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.player-cover img{
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--clay);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.player-info h1{
  font-size: 32px;
  color: var(--ink);
}
.by{
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.by a{ color: var(--clay-deep); font-weight: 600; }
.by a:hover{ text-decoration: underline; }

.audio-shell{
  margin-top: 26px;
  background: var(--cream-alt);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.transport{
  display: flex;
  align-items: center;
  gap: 18px;
}
.progress-wrap{ flex: 1; }
.progress-bar{
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  position: relative;
}
.progress-fill{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--clay);
}
.time-row{
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.reaction-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.count{ min-width: 20px; }

.lyrics-block{
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.lyrics-block h2{
  font-size: 18px;
  color: var(--clay-deep);
  margin-bottom: 12px;
}
.lyrics-block pre{
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--ink);
  margin: 0;
}

.related-songs{
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */
@media (max-width: 720px){
  .nav-links, .nav-search{ display: none; }
  .hero{ padding: 56px 0 34px; }
  .hero h1{ max-width: none; }
  .section{ padding: 40px 0; }
  .player-layout{ grid-template-columns: 1fr; gap: 24px; }
  .player-cover{ max-width: 220px; margin: 0 auto; }
  .footer-grid{ flex-direction: column; align-items: flex-start; text-align: left; }
}
