/* Tazers home below-fold sections. See docs/design-plan.md §3.1. */

.tz-section { padding: var(--space-9) 0; position: relative; }
.tz-section--release { background: var(--tz-black); color: var(--tz-cream); }
.tz-section--shows   { background: #0F0606; color: var(--tz-cream); border-top: 1px solid rgba(229,26,26,0.15); border-bottom: 1px solid rgba(229,26,26,0.15); }
.tz-section--press   { background: var(--tz-black); color: var(--tz-cream); padding: var(--space-10) 0; }
.tz-section--gallery { background: var(--tz-cream); color: var(--tz-black); }
.tz-section--shop    { background: #150909; color: var(--tz-cream); }
.tz-section--fuzz    { background: var(--tz-black); color: var(--tz-cream); padding: 0; overflow: hidden; min-height: 60vh; display: grid; place-items: center; }

.tz-section__head {
  display: flex;
  align-items: end;
  gap: var(--space-4);
  margin: 0 0 var(--space-6);
  flex-wrap: wrap;
}
.tz-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.tz-section__lede {
  font-size: var(--fs-body-lg);
  max-width: 60ch;
  margin: 0 0 var(--space-5);
  color: rgba(245,239,226,0.85);
}
.tz-section__more {
  margin-left: auto;
  color: var(--tz-red);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.tz-section__more:hover { color: var(--tz-cream); }

.tz-section__empty {
  text-align: center;
  color: rgba(245,239,226,0.55);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: var(--space-6) 0;
}

.tz-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) { .tz-section__grid { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }

/* ============================================================
 * §1 Latest release
 * ============================================================ */
/* The sleeve is the positioning stage: album cover sits front-left, the
   vinyl disc peeks out from behind its right edge and spins on a loop. */
.tz-release__sleeve {
  position: relative;
  aspect-ratio: 1 / 1;
  isolation: isolate;
  max-width: 460px;
  margin-inline: auto;
}

/* ---- Album cover (front, z-2). Holds either the uploaded artwork or,
   when no artwork exists yet, a typographic gradient placeholder. ---- */
.tz-release__cover {
  position: absolute;
  z-index: 2;
  top: 11%;
  left: 0;
  width: 78%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--tz-cream);
  padding: var(--space-5);
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  box-shadow: 0 22px 50px rgba(0,0,0,0.55);
  overflow: hidden;
  /* Container so the typographic-fallback title can size itself in cqw
     and never clip against the overflow:hidden above. */
  container-type: inline-size;
}
/* No artwork yet -> keep the gradient + typographic placeholder. */
.tz-release__cover:not(:has(.tz-release__cover-art)) {
  background: linear-gradient(135deg, var(--tz-red) 0%, var(--tz-coral) 40%, var(--tz-magenta) 100%);
}
.tz-release__cover:has(.tz-release__cover-art) { padding: 0; }
.tz-release__cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Glow halo (behind everything, z-0). Keeps the dark vinyl readable
   on the dark section, and pulses harder while a track is playing. ---- */
.tz-release__glow {
  position: absolute;
  z-index: 0;
  top: 2%;
  left: 17%;
  width: 96%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(229, 26, 26, 0.55) 0%,
    rgba(230, 48, 125, 0.34) 42%,
    transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  animation: tz-release-glow 5.5s ease-in-out infinite;
}
@keyframes tz-release-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50%      { opacity: 0.72; transform: scale(1.03); }
}
/* While a track plays (JS adds .is-playing to the sleeve) - brighter, quicker. */
.tz-release__sleeve.is-playing .tz-release__glow {
  background: radial-gradient(circle,
    rgba(229, 26, 26, 0.85) 0%,
    rgba(230, 48, 125, 0.52) 45%,
    transparent 72%);
  animation-duration: 1.5s;
}
@media (prefers-reduced-motion: reduce) {
  .tz-release__glow { animation: none; opacity: 0.6; }
}

/* ---- Vinyl disc (z-1). Peeks ~22% past the cover's right edge. ---- */
.tz-release__disc {
  position: absolute;
  z-index: 1;
  top: 15%;
  left: 30%;
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #1c1c1c 0 2px, #0a0a0a 2px 5px);
  box-shadow:
    0 0 0 1px rgba(245,239,226,0.14),
    0 18px 40px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(0,0,0,0.8);
  animation: tz-release-disc-spin 11s linear infinite;
  will-change: transform;
}
/* Glossy sheen sweeping across the grooves */
.tz-release__disc::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(125deg, transparent 35%, rgba(245,239,226,0.16) 48%, transparent 60%);
  pointer-events: none;
}
/* Centre label + spindle hole */
.tz-release__disc-label {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%; height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--tz-gold) 0 18%, var(--tz-red) 18% 100%);
  box-shadow: 0 0 0 1px rgba(10,10,10,0.4);
}
.tz-release__disc-label::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9%; height: 9%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--tz-black);
}
@keyframes tz-release-disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tz-release__disc { animation: none; }
}
.tz-release__catalog { color: var(--tz-cream); opacity: 0.85; }
.tz-release__title {
  font-family: var(--font-display);
  font-weight: 900;
  /* Sized in cqw so it always fits the cover square, whatever the title
     length or cover size - no clipping against the cover's overflow:hidden. */
  font-size: clamp(20px, 15cqw, 52px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  max-width: 100%;
  overflow-wrap: break-word;
}
.tz-release__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0;
}

.tz-release__embed {
  margin: var(--space-5) 0;
  border: 1px solid rgba(229,26,26,0.3);
}
.tz-release__embed iframe { display: block; }
.tz-release__platforms { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* §2 Bandsintown widget styling is in bandsintown.css (shared with shows page). */
.tz-shows__noscript {
  text-align: center;
  padding: var(--space-6);
  color: rgba(245,239,226,0.7);
}

/* ============================================================
 * §3 Press quotes (rotator)
 * ============================================================ */
.tz-press__quotes { position: relative; min-height: 280px; max-width: 900px; margin: 0 auto; }
.tz-press__quote {
  position: absolute;
  inset: 0;
  margin: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s ease;
}
.tz-press__quote.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.tz-press__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
}
.tz-press__cite {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tz-red);
}
.tz-press__cite a { color: var(--tz-red); text-decoration: none; }
.tz-press__cite a:hover { color: var(--tz-cream); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
 * §4 Gallery masonry (matches the /gallery/ page treatment - pure CSS
 * columns, natural aspect ratios, real masonry layout)
 * ============================================================ */
.tz-gallery__masonry {
  column-count: 2;
  column-gap: 8px;
}
@media (min-width: 768px)  { .tz-gallery__masonry { column-count: 3; column-gap: 12px; } }
@media (min-width: 1280px) { .tz-gallery__masonry { column-count: 4; column-gap: 16px; } }

.tz-gallery__tile {
  display: block;
  margin: 0 0 8px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  overflow: hidden;
  background: var(--tz-shadow);
  position: relative;
}
@media (min-width: 768px)  { .tz-gallery__tile { margin-bottom: 12px; } }
@media (min-width: 1280px) { .tz-gallery__tile { margin-bottom: 16px; } }

.tz-gallery__tile img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) var(--ease-out),
              filter var(--dur-base) var(--ease-out);
}
.tz-gallery__tile:hover img {
  transform: scale(1.04);
  filter: contrast(1.1) saturate(1.15);
}
.tz-gallery__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(229,26,26,0.25) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.tz-gallery__tile:hover::after { opacity: 1; }

/* ============================================================
 * §5 Shop preview
 * ============================================================ */
.tz-shop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 720px) { .tz-shop__grid { grid-template-columns: repeat(3, 1fr); } }
.tz-shop__card {
  display: block;
  text-decoration: none;
  color: var(--tz-cream);
  transition: transform var(--dur-base) var(--ease-out);
}
.tz-shop__card:hover { transform: translateY(-4px); }
.tz-shop__thumb {
  background: var(--tz-cream);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
}
.tz-shop__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform var(--dur-slow) var(--ease-out); }
.tz-shop__card:hover .tz-shop__thumb img { transform: scale(1.04); }
.tz-shop__name { font-family: var(--font-display); font-weight: 900; font-size: 22px; margin: 0 0 4px; line-height: 1.15; }
.tz-shop__price { font-family: var(--font-mono); font-size: 14px; color: var(--tz-red); margin: 0; }
.tz-shop__empty {
  text-align: center;
  color: rgba(245,239,226,0.55);
  padding: var(--space-7) 0;
  border: 1px dashed rgba(245,239,226,0.15);
}
.tz-shop__empty p { margin: 0 0 var(--space-2); }

/* ============================================================
 * §6 FUZZ slogan + newsletter
 * ============================================================ */
.tz-fuzz__bg {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.tz-fuzz__bg span {
  font-family: var(--font-hero);
  font-size: clamp(220px, 60vw, 800px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--tz-red);
  opacity: 0.85;
  text-shadow: 0 0 100px rgba(229,26,26,0.5);
  white-space: nowrap;
  user-select: none;
}
.tz-fuzz__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-9) var(--gutter);
  max-width: 600px;
}
.tz-fuzz__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  margin: 0 0 var(--space-4);
}
.tz-fuzz__lede {
  font-size: var(--fs-body-lg);
  margin: 0 0 var(--space-6);
  color: rgba(245,239,226,0.85);
}
.tz-fuzz__form {
  display: flex; gap: 8px; max-width: 460px; margin: 0 auto var(--space-3);
}
.tz-fuzz__form input[type="email"] {
  flex: 1;
  background: var(--tz-black);
  border: 1px solid rgba(245,239,226,0.3);
  color: var(--tz-cream);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
}
.tz-fuzz__form input[type="email"]:focus { outline: 2px solid var(--tz-red); border-color: var(--tz-red); }
.tz-fuzz__note { font-size: 11px; color: rgba(245,239,226,0.45); }
@media (max-width: 540px) {
  .tz-fuzz__form { flex-direction: column; }
  .tz-fuzz__form .tz-btn { width: 100%; }
}
