/* ROCK66 — shared stylesheet (parallax prototype)
   Base styles carried over from the static prototype, plus a parallax hero
   matching the Bandzoogle home page (full-bleed photo, overlay nav,
   text floating over the image). */

@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

:root {
  /* Bandzoogle's "content" typeface, used for body/blurb text: Fjalla One, regular */
  --content-font: 'Fjalla One', sans-serif;

  /* Bandzoogle-style text size scale (mirrors their .text-small / .text-big
     span classes — pick a size keyword rather than a raw px value) */
  --text-small: 16px;
  --text-regular: 20px;
  --text-big: 32px;

  --bg: #15161a;
  --bg-alt: #1f2127;
  --text: #f2f2f2;
  --text-muted: #b9bbc2;
  --accent: #d6293e;
  --border: #33353c;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--content-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------------------------------------------------------------- */
/* Overlay header — transparent bar floating over the hero image     */
/* ---------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

/* On inner pages (no hero) the header needs a solid background */
body.no-hero .site-header {
  position: relative;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.site-header .logo img {
  height: 80px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------------- */
/* Language switcher                                                   */
/* ---------------------------------------------------------------- */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.2rem 0.3rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lang-switch:hover {
  opacity: 1;
  text-decoration: none;
}

.lang-switch.current {
  opacity: 1;
  color: var(--accent);
  font-weight: 700;
}

/* ---------------------------------------------------------------- */
/* Hamburger menu — mobile nav toggle                                 */
/* ---------------------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 700px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .site-header .logo img {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
  }

  .lang-switcher {
    gap: 1rem;
  }

  .lang-switch {
    font-size: 1.05rem;
    padding: 0.35rem 0.4rem;
  }
}

/* ---------------------------------------------------------------- */
/* Fixed background photo + scroll-linked darkening                  */
/* ---------------------------------------------------------------- */

/*
  The photo is a fixed full-viewport background — it does not move or
  scale as the page scrolls. A static top/bottom vignette sits over it,
  plus a separate overlay whose opacity increases the further down the
  page you scroll (CSS scroll-driven animation, no JS). Scrolling back
  to the top fades the overlay out again, restoring full brightness.
  position: fixed (not background-attachment: fixed) so this works on
  iOS/Android too.
*/

body.has-bg-photo {
  background: #000;
}

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 18%),
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 30%);
  pointer-events: none;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
  opacity: 0.15;
  pointer-events: none;

  /* Scroll-driven: opacity rises from 0.15 (top of page) to 0.55 (cap),
     reaching the cap by the time the user has scrolled 40% of the page —
     the photo stays visible underneath rather than fading to black. */
  animation: darken-on-scroll auto linear;
  animation-timeline: scroll(root);
  animation-range: 0 40%;
  animation-fill-mode: both;
}

@keyframes darken-on-scroll {
  from { opacity: 0.15; }
  to   { opacity: 0.55; }
}

/* Fallback for browsers without scroll-driven animations: settle on a
   mid-level darkening so text stays readable throughout. */
@supports not (animation-timeline: scroll()) {
  .bg-scrim { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-scrim { animation: none; opacity: 0.55; }
}

/* Inner pages: no hero text, so the scrim sits at its capped dark level
   from the start (no scroll-driven brightening at the top). */
.bg-scrim.bg-scrim-static {
  animation: none;
  opacity: 0.55;
}

/* Inner pages still use the overlay header (no solid bar), so push the
   page content down to clear it. */
body.inner-page main {
  padding-top: 6rem;
}

@media (max-width: 700px) {
  body.inner-page main {
    padding-top: 5rem;
  }
}

/* ---------------------------------------------------------------- */
/* Hero text — sits in the first viewport, over the photo            */
/* ---------------------------------------------------------------- */

.hero-spacer {
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0 2rem;
}

.hero-text {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 3rem;
  width: 100%;
}

.hero-text p {
  color: #fff;
  font-family: var(--content-font);
  font-weight: 400;
  font-style: normal;
  font-size: var(--text-regular); /* default; overridden by .text-small / .text-big on the element */
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Bandzoogle-style size utility spans, e.g. <p class="text-big">...</p> */
.hero-text p.text-small { font-size: var(--text-small); }
.hero-text p.text-big   { font-size: var(--text-big); }

@media (max-width: 700px) {
  .hero-spacer { min-height: 70vh; padding: 0 1.5rem; }
  .hero-text p.text-big { font-size: 20px; }
}

/* ---------------------------------------------------------------- */
/* Main content                                                       */
/* ---------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* On pages with a fixed background photo, give content sections a
   translucent dark panel so they read clearly over the photo. */
body.has-bg-photo section.block,
body.has-bg-photo .site-footer {
  background: rgba(21, 22, 26, 0.78);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  padding: 1.5rem 2rem 2rem;
  border-bottom: none;
}

body.has-bg-photo .site-footer {
  position: relative;
  z-index: 1;
  margin: 2rem auto 2rem;
  max-width: var(--max-width);
  border-top: none;
}

.page-title {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

section.block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

section.block:last-child {
  border-bottom: none;
}

section.block h2 {
  margin-top: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* Events table (Bandzoogle-style "Next gigs" listing) */
.events-table {
  width: 100%;
  border-collapse: collapse;
}

.events-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 1rem 0.6rem 0;
}

.events-table td {
  padding: 0.9rem 1rem 0.9rem 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
  font-size: calc(1.1rem + 2px);
}

.events-table td:first-child,
.events-table th:first-child {
  font-weight: 400;
  white-space: nowrap;
  padding-left: 0;
}

.event-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .events-table thead { display: none; }
  .events-table, .events-table tbody, .events-table tr, .events-table td {
    display: block;
    width: 100%;
  }
  .events-table tr {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
  }
  .events-table td {
    border-top: none;
    padding: 0.15rem 0;
  }
  .events-table td:first-child {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }
}

/* Shows history table extras */
.shows-privat {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.3em;
  margin-left: 0.4em;
  vertical-align: middle;
  opacity: 0.6;
}
.shows-privat-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.shows-history {
  table-layout: fixed;
  width: 100%;
}
.shows-history col.col-num  { width: 2.5rem; }
.shows-history col.col-date { width: 8rem; }
.shows-history col.col-loc  { width: auto; }
.shows-history col.col-member { width: 2.2rem; }

/* Scroll wrapper for wide tables */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

/* Member ✓ cells */
.shows-history .col-check {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent);
}
.shows-history thead th.col-member {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.2rem;
}

/* Sticky header clone */
.sticky-thead-clone {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: none;
}
.sticky-thead-clone table {
  table-layout: fixed;
  border-collapse: collapse;
}
.sticky-thead-clone th {
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.sticky-thead-clone th.col-member {
  text-align: center;
}
.shows-history td:first-child {
  white-space: nowrap;
  text-align: right;
  padding-right: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- */
/* Audio player (AmplitudeJS)                                        */
/* ---------------------------------------------------------------- */

.audio-player {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

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

.player-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Main play/pause button: AmplitudeJS toggles amplitude-playing /
   amplitude-paused on this element — show the matching icon. */
.player-play-pause {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0;
}

.player-play-pause::before {
  font-size: 1rem;
  line-height: 1;
}

.player-play-pause.amplitude-paused::before {
  content: "▶";
  margin-left: 2px;
}

.player-play-pause.amplitude-playing::before {
  content: "⏸";
}

.player-now-playing {
  flex: 1 1 auto;
  min-width: 120px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.player-time {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1 1 220px;
}

.amplitude-song-slider {
  flex: 1;
  accent-color: var(--accent);
}

/* Track list */
.songs-list {
  display: flex;
  flex-direction: column;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

/* Highlight the currently playing track */
.song-row.amplitude-active-song-container {
  background: rgba(214, 41, 62, 0.12);
}

.song-play-pause {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-play-pause::before {
  content: "▶";
  font-size: 0.7rem;
  margin-left: 2px;
}

.song-play-pause.amplitude-playing::before {
  content: "⏸";
  margin-left: 0;
}

.song-row:hover .song-play-pause,
.song-row.amplitude-active-song-container .song-play-pause {
  border-color: var(--accent);
  color: var(--accent);
}

.song-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.song-title {
  font-weight: 600;
}

.song-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.song-duration {
  flex: none;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.song-row-empty {
  border-bottom: none;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .player-controls {
    padding: 0.85rem 1rem;
  }
  .player-now-playing {
    order: 1;
    flex-basis: 100%;
  }
  .player-time {
    order: 2;
    flex-basis: 100%;
  }
}

/* Placeholder styling */
.placeholder {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  font-style: italic;
}

.placeholder strong {
  display: block;
  font-style: normal;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

/* Promo video embed (responsive 16:9) */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.btn:hover { text-decoration: none; opacity: 0.9; }

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 420px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

/* Booking form */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 220px;
}

.form-field-full {
  flex: 1 1 100%;
}

.form-field label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-field textarea {
  resize: vertical;
}

.booking-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Inline form feedback (success / error messages) */
.form-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-message.success {
  color: #6fcf6f;
}

.form-message.error {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Band bio lineup lines */
.lineup {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.25rem;
}

.grid-members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.member-card strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  color: var(--text);
}

.member-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 700px) {
  main { padding: 1.5rem; }

  .grid-members {
    grid-template-columns: 1fr;
  }
}

/* Press quotes */
.press-quote {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg-alt);
  margin: 0;
}

.press-quote p {
  font-style: italic;
  margin: 0 0 0.8rem;
}

.press-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* Press clippings */
.press-clipping {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}

.press-clipping img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- */
/* Responsive: hide member columns on mobile                        */
/* ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .shows-history col.col-member,
  .shows-history th.col-member,
  .shows-history td.col-check {
    display: none;
  }
  .shows-history {
    width: 100%;
  }
}
