/* ==========================================================================
   Baphomet's Lounge — neon / synthwave theme
   Full-width responsive layout with a collapsible side menu.
   ========================================================================== */

:root {
  --bg:        #07070d;
  --bg-2:      #0c0c16;
  --panel:     #11111d;
  --border:    #262640;
  --text:      #f3f2fb;
  --muted:     #9a99b8;
  --magenta:   #ff1f1f;
  --cyan:      #ff5533;
  --purple:    #8b0000;
  --sidebar-w: 248px;
  --topbar-h:  60px;
  --masthead-h: 160px;
  --radius:    14px;
  --maxread:   1100px;
  --glow-magenta: 0 0 18px rgba(255, 31, 31, .55);
  --glow-cyan:    0 0 18px rgba(255, 85, 51, .45);
  --grad: linear-gradient(135deg, #ff1f1f 0%, #cc0808 50%, #8b0000 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139, 0, 0, .22), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(255, 31, 31, .15), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s, text-shadow .2s; }
a:hover { color: var(--magenta); text-shadow: var(--glow-magenta); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Special Elite", "Trebuchet MS", monospace;
  letter-spacing: .5px;
  margin: 0 0 .6em;
}

/* ----- Scrollbars --------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

/* ==========================================================================
   Header band (masthead) — full-width logo across the page
   ========================================================================== */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--masthead-h);
  padding: 14px 24px;
  background: linear-gradient(180deg, #0b0b16 0%, #08080f 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
  z-index: 60;
}
.masthead::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.masthead__logo { display: block; height: 100%; }
.masthead__logo img {
  height: 100%;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 14px rgba(255, 31, 31, .4));
}

/* ==========================================================================
   Shell — the menu + content row between header and footer
   ========================================================================== */
.shell {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100vh - var(--masthead-h));
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: calc(100vh - var(--masthead-h));
  background: linear-gradient(180deg, #0b0b16 0%, #08080f 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 30px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  padding-top: 14px;
  transition: transform .3s ease;
}

.nav { list-style: none; margin: 6px 0 0; padding: 0 10px; }
.nav__item > a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .4px;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.nav__item > a i { width: 22px; text-align: center; font-size: 18px; }
.nav__item > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  text-shadow: none;
}
.nav__item.is-active > a {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 31, 31, .22), rgba(139, 0, 0, .10));
  border-color: rgba(255, 31, 31, .5);
  box-shadow: var(--glow-magenta);
}
.nav__item.is-active > a i { color: var(--cyan); }

.nav__sep {
  height: 1px;
  margin: 14px 14px 6px;
  background: var(--border);
}
.nav__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #5d5d7a;
  padding: 4px 18px;
}
.nav--external .nav__item > a i { color: var(--magenta); }
.nav--external .nav__item > a:hover i { color: var(--cyan); }

/* ==========================================================================
   Hamburger (mobile only) + drawer backdrop
   ========================================================================== */
.hamburger {
  display: none;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 20px;
  cursor: pointer;
  transition: all .2s;
}
.hamburger:hover { border-color: var(--magenta); box-shadow: var(--glow-magenta); color: var(--magenta); }

.backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
  z-index: 45;
}
.backdrop.is-visible { display: block; }

/* ==========================================================================
   Main content
   ========================================================================== */
.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 34px 40px 70px;
}

.section { display: none; }
.section.is-active { display: block; animation: fadeUp .4s ease both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section__head h2 {
  margin: 0;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section__head h2 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__head .count {
  font-size: 13px;
  color: var(--muted);
  font-family: "Trebuchet MS", sans-serif;
  letter-spacing: 1px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* Generic readable panel (About / Contact) */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.panel p { color: #d9d8ec; }
.panel .dropcap::first-letter,
.panel p.lead::first-letter {
  float: left;
  font-family: "Special Elite", monospace;
  font-size: 3.1em;
  line-height: .82;
  padding: 6px 12px 0 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Artists
   ========================================================================== */
.artist {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.artist:hover { border-color: rgba(255, 85, 51, .5); box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.artist h3 { margin: 0; font-size: 24px; }
.artist h3 a { color: var(--text); }
.artist h3 a:hover { color: var(--magenta); }
.artist p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Music cards
   ========================================================================== */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar label { font-size: 13px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.select {
  appearance: none;
  background: var(--panel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%2319e0ff' stroke-width='1.6'/></svg>") no-repeat right 12px center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 34px 9px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select:hover, .select:focus { border-color: var(--cyan); box-shadow: var(--glow-cyan); outline: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 31, .55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), var(--glow-magenta);
}
.card__art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__art img { transform: scale(1.05); }

.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__song { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.25; }
.card__artist a { font-size: 14px; color: var(--cyan); }
.card__meta { font-size: 12px; color: var(--muted); letter-spacing: .3px; }
.card__meta b { color: #c7c6df; font-weight: 600; }

.card__links { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.card__links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 17px;
  transition: all .2s;
}
.card__links a:hover {
  color: #fff;
  border-color: var(--magenta);
  box-shadow: var(--glow-magenta);
  transform: translateY(-2px);
  text-shadow: none;
}

/* ==========================================================================
   Media grids (Videos / TV / Spotify)
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}
.media-grid--spotify { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

.media {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.media:hover { border-color: rgba(255, 85, 51, .5); box-shadow: var(--glow-cyan); transform: translateY(-3px); }
.media__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.media--spotify .media__frame { aspect-ratio: auto; height: 400px; }
.media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__title { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 34px 0 4px;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.pagination button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.pagination button.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 31, 31, .3), rgba(139, 0, 0, .3));
  border-color: var(--magenta);
  box-shadow: var(--glow-magenta);
}
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pagination .ellipsis { color: var(--muted); padding: 0 4px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row h4 { margin: 0; color: var(--cyan); font-size: 16px; }
.contact-row p { margin: 0; color: #d9d8ec; }

/* ==========================================================================
   Footer band — full-width copyright across the page
   ========================================================================== */
.footer-band {
  position: relative;
  width: 100%;
  padding: 22px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .4px;
  background: linear-gradient(180deg, #08080f 0%, #0b0b16 100%);
  border-top: 1px solid var(--border);
}
.footer-band::before {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  /* Compact, sticky header so the hamburger stays reachable while scrolling */
  .masthead {
    position: sticky;
    top: 0;
    height: var(--topbar-h);
    padding: 10px 16px;
    background: rgba(8, 8, 15, .92);
    backdrop-filter: blur(10px);
    z-index: 60;
  }
  .hamburger { display: inline-flex; }

  /* Sidebar becomes an off-canvas drawer */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100%;
    z-index: 70;
    transform: translateX(-100%);
    box-shadow: 4px 0 40px rgba(0, 0, 0, .8);
    padding-top: 22px;
  }
  .sidebar.is-open { transform: translateX(0); }
  .backdrop { z-index: 65; }

  .shell { min-height: calc(100vh - var(--topbar-h)); }
  .main { padding: 22px 18px 60px; }
  .artist { grid-template-columns: 1fr; text-align: center; }
  .artist .artist__name { justify-content: center; }
  .section__head h2 { font-size: 24px; }

  /* Mobile shows one item per page (see getPageSize in app.js) — force a
     single full-width column so it is always 1 column x 1 row. */
  .cards,
  .media-grid,
  .media-grid--spotify { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
  .panel { padding: 20px 18px; }
  .section__head { flex-wrap: wrap; }
}
