/* ==========================================================================
   The Bunyups Digital Web Archive & Player — Stylesheet
   Theme: Warm Analogue Glassmorphism / Vintage Vinyl Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #12100e;
  --bg-secondary: #1a1714;
  --bg-card: rgba(30, 26, 23, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(217, 107, 52, 0.3);

  --text-main: #f5f2eb;
  --text-muted: #a69f95;
  --text-dim: #70685e;

  --accent-terracotta: #d96b34;
  --accent-hover: #f07d42;
  --accent-gold: #d4af37;
  --accent-vinyl: #25201c;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(217, 107, 52, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 107, 52, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-radio-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  border: none;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.header-radio-logo:hover {
  transform: scale(1.08) rotate(-3deg);
}

.header-lettering-img {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-text span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-terracotta);
  display: block;
  line-height: 1.1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

/* ==========================================================================
   Hero & Album Feature
   ========================================================================== */

.hero-section {
  padding: 4rem 0 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: center;
}

.album-cover-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-main), var(--shadow-glow);
  border: 1px solid var(--border-accent);
}

.album-cover-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.album-cover-card:hover img {
  transform: scale(1.03);
}

.album-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.hero-info h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.hero-info .subtitle {
  font-size: 1.2rem;
  color: var(--accent-terracotta);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--accent-terracotta);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 107, 52, 0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Sticky Interactive Audio Player
   ========================================================================== */

.player-bar {
  background: rgba(22, 19, 16, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 2.0rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-main);
}

.player-inner {
  display: grid;
  grid-template-columns: 240px 1fr 180px;
  gap: 2rem;
  align-items: center;
}

.track-meta-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.track-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.track-details .track-title-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.track-details .track-artist-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.control-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover {
  color: var(--text-main);
}

.control-btn.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(217, 107, 52, 0.4);
}

.control-btn.play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold));
  border-radius: 3px;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.volume-slider {
  width: 80px;
  accent-color: var(--accent-terracotta);
}

/* Canvas Waveform Visualizer */
#waveformCanvas {
  width: 100%;
  height: 36px;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Tracklist & Expandable Lyrics Drawer Section
   ========================================================================== */

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.tracklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.track-row {
  display: grid;
  grid-template-columns: 50px 1fr 140px 100px;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.track-row:last-child {
  border-bottom: none;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.track-row.active {
  background: rgba(217, 107, 52, 0.1);
  border-left: 4px solid var(--accent-terracotta);
}

.track-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.track-title-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.track-title-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-skit {
  font-size: 0.72rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

.track-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-icon {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--accent-terracotta);
  color: #fff;
  border-color: var(--accent-terracotta);
}

/* Track Lyrics & Commentary Accordion Drawer */
.track-drawer {
  display: none;
  background: rgba(14, 12, 10, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 2.5rem;
}

.track-drawer.open {
  display: block;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.drawer-column h5 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent-terracotta);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.drawer-commentary {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
  white-space: pre-line;
}

.drawer-lyrics {
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 0.95rem;
  white-space: pre-line;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  max-height: 400px;
  overflow-y: auto;
}

/* ==========================================================================
   Artifact Gallery Vault Section
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-main);
  border-color: var(--border-accent);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem 1.25rem;
}

.gallery-caption h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   Band History & Contact Section
   ========================================================================== */

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.history-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.history-card p {
  margin-bottom: 1.5rem;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.member-box h5 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.member-box p {
  font-size: 0.85rem;
  color: var(--accent-terracotta);
}

.contact-banner {
  background: linear-gradient(135deg, rgba(217, 107, 52, 0.15), rgba(37, 32, 28, 0.9));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 3rem;
  text-align: center;
  margin-top: 3rem;
}

.contact-banner h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.contact-banner p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .album-cover-card {
    max-width: 320px;
    margin: 0 auto;
  }
  .player-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .track-meta-box {
    justify-content: center;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
  }
  .track-row {
    grid-template-columns: 40px 1fr 70px;
  }
  .badge-skit {
    display: none;
  }
}
