/* =============================================================
   SHOOQA 22 — structural styles
   Tweak colours/fonts/sizes in config.css, not here.
   ============================================================= */

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

html { scroll-behavior: smooth; }

/* Offset in-page anchor jumps so the fixed navbar doesn't cover the target */
:target,
.hero, .videos, .concerts, .bio, .photos, .contact, .footer { scroll-margin-top: var(--navbar-height); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--navbar-height);
  background: var(--navbar-bg-transparent);
  transition: background-color 0.3s ease;
}

.navbar--scrolled {
  background: var(--navbar-bg-scrolled);
  backdrop-filter: blur(6px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__link {
  color: var(--navbar-text);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--nav-font-size);
  letter-spacing: var(--nav-letter-spacing);
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav__link:hover { border-bottom-color: currentColor; }

/* The specially-styled "Shooqa 22" item */
.nav__link--accent {
  color: var(--color-accent);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: var(--accent-font-size);
  letter-spacing: var(--accent-letter-spacing);
  border-bottom: none;
}

.nav__link--accent:hover {
  border-bottom: none;
  opacity: 0.8;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  width: 100%;
  background-color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Carousel slides (crossfade) --- */
.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--hero-transition, 900ms) ease;
}

.hero__slide.is-active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}

/* --- Bottom fade into the page background --- */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-fade-height, 38%);
  z-index: 1;
  pointer-events: none;
  /* Eased (S-curve) multi-stop ramp from a transparent version of the fade
     colour to the solid fade colour. A plain 2-stop linear ramp reads as a
     hard edge near the transparent end; the extra stops smooth that out.
     --hero-fade-color must match the background of the section below. */
  --_fade: var(--hero-fade-color, var(--color-bg));
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--_fade) 0%,   transparent) 0%,
    color-mix(in srgb, var(--_fade) 4%,   transparent) 19%,
    color-mix(in srgb, var(--_fade) 13%,  transparent) 34%,
    color-mix(in srgb, var(--_fade) 30%,  transparent) 47%,
    color-mix(in srgb, var(--_fade) 52%,  transparent) 59%,
    color-mix(in srgb, var(--_fade) 74%,  transparent) 71%,
    color-mix(in srgb, var(--_fade) 90%,  transparent) 83%,
    color-mix(in srgb, var(--_fade) 98%,  transparent) 93%,
    var(--_fade) 100%
  );
}

/* Fallback for browsers without color-mix(): still fades smoothly to the
   first section's colour (keep these stops in sync with --section-bg-1). */
@supports not (background: color-mix(in srgb, red, blue)) {
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(13, 13, 13, 0)    0%,
      rgba(13, 13, 13, 0.04) 19%,
      rgba(13, 13, 13, 0.13) 34%,
      rgba(13, 13, 13, 0.3)  47%,
      rgba(13, 13, 13, 0.52) 59%,
      rgba(13, 13, 13, 0.74) 71%,
      rgba(13, 13, 13, 0.9)  83%,
      rgba(13, 13, 13, 0.98) 93%,
      rgb(13, 13, 13)        100%
    );
  }
}

/* --- Dot selector --- */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: var(--hero-dots-margin, 2.6rem);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--hero-dot-gap, 0.6rem);
}

.hero__dot {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: var(--hero-dot-size, 8px);
  height: var(--hero-dot-size, 8px);
  border-radius: 999px;
  background: var(--hero-dot-color, rgba(255, 255, 255, 0.45));
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero__dot:hover { background: var(--hero-dot-color-hover, rgba(255, 255, 255, 0.75)); }

.hero__dot.is-active {
  width: var(--hero-dot-active-width, 26px);
  background: var(--hero-dot-color-active, #ffffff);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.hero__subheading {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
}

.hero__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.6rem;
  color: #fff;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/* ============ SECTION BACKGROUNDS ============
   Each content section is painted with one of two colours that alternate
   down the page. main.js adds .section--alt to every other .section once
   the final order is known (after any sectionOrder reshuffle / empty-section
   removal), so the striping is always correct. Base rule = --section-bg-1
   so sections still have a background before the script runs. */
.section        { background: var(--section-bg-1); }
.section--alt   { background: var(--section-bg-2); }

/* ============ LATEST VIDEOS ============ */
.videos {
  padding: var(--section-padding-y) 1.5rem;
}

.videos__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.videos__title {
  font-family: var(--font-heading);
  font-size: var(--videos-title-size);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 3rem;
}

.videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--video-grid-gap);
  max-width: var(--video-max-width);
  margin: 0 auto;
}

.video-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video-card:hover { transform: translateY(-4px); }

/* Clicked state: the YouTube embed replaces the card */
.video-card__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.video-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-position: center;
  background-size: cover;
  border-radius: 4px;
  overflow: hidden;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .video-card__play { opacity: 1; }

/* ============ CONCERTS ============ */
.concerts {
  padding: calc(var(--section-padding-y) * 0.7) 1.5rem;
}

.concerts__inner {
  max-width: var(--concerts-max-width);
  margin: 0 auto;
}

.concerts__title {
  font-family: var(--font-heading);
  font-size: var(--videos-title-size);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem;
}

.concerts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.concert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 1rem 0.25rem;
}

.concert[hidden] { display: none; }

.concert__date {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.concert__name {
  font-weight: 600;
  font-size: 1.5rem;
}

.concert__name--link {
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.concert__name--link:hover {
  color: var(--color-accent);
  border-bottom-color: currentColor;
}

.concert__location {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.concerts__more {
  display: block;
  margin: 1.75rem auto 0;
  padding: 0.7rem 2rem;
  background: none;
  border: 1px solid var(--concert-divider);
  border-radius: 999px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.concerts__more[hidden] { display: none; }

/* ============ BIO ============ */
.bio {
  position: relative;
  padding: var(--section-padding-y) 1.5rem;
  overflow: hidden;
}

.bio__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.bio__title {
  font-family: var(--font-heading);
  font-size: var(--videos-title-size);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
}

.bio__paragraph {
  margin: 0 0 1.1rem;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.bio__paragraph:last-child { margin-bottom: 0; }

/* Narrow / portrait screens: image stacks below the text */
.bio__media {
  margin: 2.5rem 0 0;
}

.bio__image {
  width: 100%;
  max-width: var(--bio-image-stack-max);
  aspect-ratio: var(--bio-image-ratio);
  object-fit: cover;
  border-radius: 4px;
}

/* Wide landscape screens: text on the left, a tall image pinned to the
   right edge of the screen and spanning the full height of the section. */
@media (min-width: 900px) and (orientation: landscape) {
  .bio {
    padding-right: 0;
  }

  .bio__inner {
    max-width: none;
    margin: 0;
    min-height: min(70vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(1.5rem, calc((100vw - var(--content-max-width)) / 2));
    padding-right: calc(
      min(var(--bio-image-width), var(--bio-image-max-width)) + var(--bio-column-gap)
    );
  }

  .bio--no-image .bio__inner {
    padding-right: max(1.5rem, calc((100vw - var(--content-max-width)) / 2));
    min-height: 0;
  }

  .bio__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(var(--bio-image-width), var(--bio-image-max-width));
    margin: 0;
  }

  .bio__image {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
  }
}

/* ============ PHOTOS ============ */
.photos {
  padding: var(--section-padding-y) 1.5rem;
}

.photos__inner {
  max-width: var(--gallery-max-width, 1320px);
  margin: 0 auto;
}

.photos__title {
  font-family: var(--font-heading);
  font-size: var(--videos-title-size);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 3rem;
}

/* --- Gallery ---
   Base rules double as the no-JS fallback: a simple CSS "masonry" via
   multi-column layout. Once main.js measures the images it adds
   .gallery--justified and switches to flush, aspect-correct rows. */
.gallery {
  columns: 4 200px;
  column-gap: var(--gallery-gap, 10px);
}

.gallery__item {
  position: relative;
  margin: 0 0 var(--gallery-gap, 10px);
  break-inside: avoid;
  overflow: hidden;
  border-radius: var(--gallery-radius, 4px);
  cursor: zoom-in;
  background: #1a1a1a;
}

.gallery__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery__item:hover .gallery__img { transform: scale(1.05); }

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.8rem 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--gallery-caption-color, #fff);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery__item:hover .gallery__caption { opacity: 1; }

/* JS-measured justified rows */
.gallery--justified {
  columns: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centre each row — matters for the last / capped row */
  gap: var(--gallery-gap, 10px);
}

.gallery--justified .gallery__item {
  margin: 0;
  flex: 0 0 auto;
}

.gallery--justified .gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Lightbox (full-screen photo viewer) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: var(--lightbox-bg, rgba(6, 6, 6, 0.95));
}

.lightbox.is-open { display: flex; }

.lightbox__stage {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}

.lightbox__caption {
  margin: 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }

.lightbox__close {
  top: 2vmin;
  right: 3vmin;
  font-size: 2.4rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem;
  font-size: 3rem;
}

.lightbox__nav--prev { left: 1vmin; }
.lightbox__nav--next { right: 1vmin; }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 600px) {
  .lightbox__nav { font-size: 2rem; padding: 0.4rem; }
  .lightbox__close { font-size: 2rem; }
}

/* ============ CONTACT ============ */
.contact {
  padding: calc(var(--section-padding-y) * 0.7) 1.5rem;
}

.contact__inner {
  max-width: var(--concerts-max-width);
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: var(--videos-title-size);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2.5rem;
}

.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.contact__role {
  color: var(--color-accent);
}

.contact__name {
  color: var(--color-text);
}

.contact__email {
  color: var(--color-text-muted);
  user-select: all;
  -webkit-user-select: all;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-footer);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--social-gap);
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.footer__social-link {
  display: inline-flex;
  color: var(--social-icon-color);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__social-link:hover {
  color: var(--social-icon-hover);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  fill: currentColor;
}

.footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  :root { --nav-gap: 1.2rem; }
  .nav__list { padding: 0.6rem 1rem; }
  .navbar { min-height: auto; }
}
