/* ==========================================================================
   1. CSS Variables & Fonts (Vintage Band Vibe)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* 
    Palette direction: "Late-night songwriter meets theatrical AI characters"
    Warm parchment base is kept — it's the human, handwritten core.
    Deep burgundy replaces pure black for impact — richer, more velvet-like.
    Dusty gold replaces the mid-brown — nods to candlelight and stage lighting.
    Warm cream replaces flat white — keeps everything feeling aged and intentional.
  */

  --bg-color: #cfc3a3;         /* Aged parchment — slightly deeper than before */
  --bgh-color: #e8dcc0;        /* Lighter parchment for header/footer surfaces */
  --card-bg: #f5efe0;          /* Warm cream for card surfaces */
  --text-primary: #5c3d2e;     /* Deep walnut brown */
  --text-secondary: #7a4f3a;   /* Mid-brown for subtitles/dates */
  --accent-color: #2b1a12;     /* Near-black espresso — replaces pure black */
  --accent-hover: #6b1e2e;     /* Deep burgundy for hovers — theatrical, warm */
  --gold: #b8893a;             /* Dusty stage gold — used for dividers/accents */

  /* Typography */
  --font-display: 'Bebas Neue', cursive;
  --font-body: 'Montserrat', sans-serif;

  /* Fluid Typography */
  --font-base: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --font-h1: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  --font-h2: clamp(1.8rem, 1.5rem + 2vw, 3rem);

  /* Layout constraints */
  --max-width: 1200px;
}

/* ==========================================================================
   2. Global Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-logo, .cta-button {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--accent-color);
  text-transform: uppercase;
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   3. Global Header & Navigation (Mobile-First)
   ========================================================================== */
header {
  background-color: var(--bgh-color);
  padding: 1rem;
  border-bottom: 3px solid var(--accent-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.brand-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

#mobile-menu-btn {
  color: var(--accent-color);
  font-size: 2rem;
  cursor: pointer;
  display: block;
  background-color: var(--card-bg);
  border: 3px solid var(--accent-color);
  box-shadow: 4px 4px 0px var(--accent-color);
  padding: 0.1rem 0.6rem;
  transition: all 0.2s ease;
}

#mobile-menu-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--accent-color);
}

#nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 15px);
  left: 1rem;
  right: 1rem;
  width: auto;
  background-color: var(--card-bg);
  border: 4px solid var(--accent-color);
  box-shadow: 8px 8px 0px var(--accent-color);
  list-style: none;
  padding: 1.5rem 0;
  z-index: 1000;
}

#nav-links li {
  text-align: center;
  padding: 0.5rem 0;
}

#nav-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

#nav-links a:hover {
  color: var(--accent-hover);
}

#nav-links.active {
  display: flex;
}

/* ==========================================================================
   4. Home Page Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-color);
  padding: 0;
}

.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 80px);
  background-color: var(--bg-color);
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 80px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-content {
  background-color: var(--bg-color);
  padding: 2rem 1rem 4rem 1rem;
  max-width: 800px;
}

h1 {
  font-size: var(--font-h1);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--accent-color);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--card-bg);
  padding: 1rem 2.5rem;
  border: 3px solid var(--accent-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px var(--gold);
}

.cta-button:hover,
.cta-button:active {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--gold);
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--card-bg);
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
  .hero-banner {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .hero-content {
    padding: 1rem 1rem 3rem 1rem;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
    padding: 1rem;
  }

  .cta-button:hover,
  .cta-button:active {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--gold);
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--card-bg);
  }
}

/* ==========================================================================
   5. Global Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 6rem 1rem 3rem 1rem;
  border-top: 3px solid var(--accent-color);
  background-color: var(--bgh-color);
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  footer {
    padding-top: 2rem;
  }
}

/* ==========================================================================
   6. Desktop Breakpoint
   ========================================================================== */
@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none;
  }

  #nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
  }
}

/* ==========================================================================
   7. Songs Feed Layout
   ========================================================================== */
.song-feed-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.feed-description {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 3rem;
  font-weight: 600;
}

.song-card {
  background-color: var(--card-bg);
  border: 3px solid var(--accent-color);
  margin-bottom: 3rem;
  padding: 1.5rem;
  box-shadow: 8px 8px 0px var(--accent-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.song-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0px var(--accent-color);
}

/* --- Top Half (Image & Info) --- */
.song-card-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.album-art {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.song-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.song-info h2 {
  font-size: var(--font-h2);
  margin-bottom: 0.25rem;
}

.artist-date {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.audio-player {
  width: 100%;
  margin-top: 1rem;
}

/* --- Bottom Half (Lyrics) --- */
.lyrics-wrapper {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--gold); /* Gold dashed divider — stage lighting nod */
  text-align: center;
  width: 100%;
}

.lyrics-dropdown summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-color);
  list-style: none;
  display: inline-block;
  padding: 0.25rem 1rem;
  transition: color 0.3s ease;
}

.lyrics-dropdown summary:hover {
  color: var(--accent-hover);
  opacity: 1;
}

.lyrics-dropdown summary::-webkit-details-marker {
  display: none;
}

.lyrics-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: rgba(43, 26, 18, 0.06); /* Faint espresso wash */
  border: 2px solid var(--gold);
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  color: var(--accent-color);
  font-weight: bold;
  text-align: left;
}

/* --- Desktop Layout --- */
@media (min-width: 768px) {
  .song-card-top {
    flex-direction: row;
    align-items: center;
  }

  .album-art-wrapper {
    flex: 0 0 35%;
  }

  .song-info {
    flex: 1;
    padding-left: 1rem;
  }
}

/* ==========================================================================
   8. Characters Layout & Frames
   ========================================================================== */
.characters-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.character-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border: 3px solid var(--accent-color);
  margin-bottom: 3rem;
  box-shadow: 8px 8px 0px var(--accent-color);
  min-height: 450px;
}

.character-image-wrapper {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-img {
  width: 100%;
  height: auto;
  border: 10px solid var(--accent-hover); /* Burgundy frame — theatrical, character-specific */
  box-shadow: 6px 6px 0px rgba(107, 30, 46, 0.25);
  display: block;
}

.character-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .character-card {
    flex-direction: row;
    align-items: stretch;
  }
}

/* ==========================================================================
   9. About Us Layout
   ========================================================================== */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.about-hero-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto 3rem auto;
  border: 4px solid var(--accent-color);
  box-shadow: 8px 8px 0px var(--accent-color);
  background-color: var(--bg-color);
}

.story-section {
  margin-bottom: 3rem;
}

.story-section h2 {
  font-size: var(--font-h2);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.story-section p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cta-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/* ==========================================================================
   10. Links Hub
   ========================================================================== */
.links-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.links-header {
  margin-bottom: 3rem;
}

.link-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 1.25rem;
  background-color: var(--bg-color);
  border: 3px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: 4px 4px 0px var(--accent-color);
  transition: all 0.2s ease;
}

.social-button .icon {
  width: 28px;
  height: 28px;
}

.social-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--gold);
  background-color: var(--accent-color);
  color: var(--card-bg);
}
