/* The Alley Kats — base styles */

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --seafoam: #9FE2BF;
  --lavender: #C9B1E8;
  --lightblue: #87CEEB;
  --text: var(--lightblue);
  --accent: var(--seafoam);
  --muted: var(--lavender);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, sans-serif;
  background: #080612;
  color: var(--text);
  line-height: 1.6;
}

/* Pages with canvas background: use block layout so fixed layer takes no space */
body.page-with-canvas-bg {
  display: block;
}

/* Canvas background (matches homepage) — fixed behind content */
.canvas-bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, #1a2530 0%, #0f1419 100%);
  pointer-events: none;
}
.canvas-bg-wrap #canvas-bg {
  display: block;
  width: 100%;
  height: 100%;
}
.canvas-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 8, 20, 0.4);
  pointer-events: none;
}
.site-root {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

/* 801-style: header fixed at top, full width */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin: 0 auto;
  max-width: 80rem;
}

@media (min-width: 640px) {
  .nav {
    padding: 1rem 2rem;
  }
}

@media (min-width: 768px) {
  .nav {
    padding: 1rem 3rem;
  }
}

@media (min-width: 1024px) {
  .nav {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 1.25rem 4rem;
  }
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  height: 2.75rem;
  width: auto;
  display: block;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .logo-img {
    height: 3rem;
    max-width: 220px;
  }
}

.logo:hover .logo-img {
  opacity: 0.9;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 3rem;
  }
}

.nav-links a {
  color: var(--lavender);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  .nav-links a {
    font-size: 1.35rem;
  }
}

.nav-links a:hover,
.nav-links a.current {
  color: var(--seafoam);
}

/* Main content clears fixed header (801-style) */
main {
  flex: 1;
  padding-top: 5.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  main {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  main {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1280px) {
  main {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

/* Hero: band photo with logo + tagline overlaid on top */
.hero-with-band {
  position: relative;
  width: 100%;
  max-width: 720px;
  min-height: 42vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
}

.hero-band-photo {
  width: 100%;
  height: 100%;
  min-height: 42vh;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  /* Slight zoom to crop out white border in the image */
  transform: scale(1.08);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  filter: contrast(1.06) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}


.hero-logo-oval-wrap {
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1.35 / 1;
  width: min(70vw, 380px);
  min-width: min(70vw, 380px);
  flex-shrink: 0;
  display: block;
}

.hero-logo-oval-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Zoom into the logo so it fills the oval (image has lots of black padding) */
  transform: scale(2.2);
}

.hero-overlay .tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.02em;
}

.hero-logo {
  max-width: min(90vw, 420px);
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.tagline {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}

/* Inner page hero */
.page-hero {
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.02em;
}

.page-hero .tagline {
  margin: 0;
  font-size: 1.1rem;
}

/* Media page: no grey box, match homepage fonts & colors */
.page-hero--transparent {
  background: transparent;
}

.page-hero--transparent h1 {
  font-family: 'Righteous', cursive;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  color: var(--seafoam);
  letter-spacing: 0.02em;
}

.page-hero--transparent .tagline {
  font-family: 'Oswald', sans-serif;
  color: var(--lavender);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
}

.store-coming-soon {
  margin: 1rem 0 0;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.store-coming-soon a {
  color: var(--accent);
  text-decoration: none;
}

.store-coming-soon a:hover {
  text-decoration: underline;
}

/* Home page intro & links */
.intro {
  text-align: center;
}

.intro p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Events list */
.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 560px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-card:last-child {
  border-bottom: none;
}

.event-date {
  flex-shrink: 0;
  width: 4rem;
  text-align: center;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 6px;
}

.event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.event-month {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.event-details h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  color: var(--text);
}

.event-location,
.event-time {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.event-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.event-link:hover {
  text-decoration: underline;
}

/* Gallery / Media */
.media-block-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--seafoam);
  font-family: 'Oswald', sans-serif;
  text-align: center;
}

.media-page .section p,
.media-page .gallery-hint {
  color: var(--lavender);
}

.media-page .gallery-placeholder {
  color: var(--lavender);
}

/* Media sections: wider so bento layout has room */
.media-page .media-videos.section,
.media-page .media-photos.section,
.media-page .media-spotify.section {
  max-width: 920px;
}

.spotify-embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}

/* Videos — bento: featured full-width, then two side-by-side */
.media-videos-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .media-videos-bento {
    grid-template-columns: 1fr;
  }
}

.media-video-card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.media-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  border-color: var(--seafoam);
}

.media-video-card--featured {
  grid-column: 1 / -1;
  border-width: 3px;
}

.media-video-label {
  margin: 0;
  padding: 0.85rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--seafoam);
  background: rgba(201, 162, 39, 0.12);
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.gallery-video-wrap {
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  box-shadow: none;
}

.media-video-card .gallery-video-wrap {
  border-radius: 10px 10px 0 0;
}

/* Responsive 16:9 YouTube embed */
.gallery-video-wrap--embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

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

.gallery-video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Photos — bento: one large left, three polaroids stacked right */
.media-photos-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  min-height: 420px;
}

@media (max-width: 640px) {
  .media-photos-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
}

.media-photo-item {
  overflow: visible;
  border-radius: 8px;
  background: var(--surface);
}

.media-photo-item--large {
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .media-photo-item--large {
    grid-column: 1;
    grid-row: auto;
    min-height: 280px;
  }
}

/* Polaroid: white/cream frame, visible tilt, shadow */
.media-photo-item--polaroid {
  background: #f5f0e8;
  padding: 0.6rem 0.6rem 2.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--polaroid-rotate, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  aspect-ratio: 3 / 4;
  display: block;
}

.media-photo-item--polaroid:nth-of-type(2) { --polaroid-rotate: -3deg; }
.media-photo-item--polaroid:nth-of-type(3) { --polaroid-rotate: 2.5deg; }
.media-photo-item--polaroid:nth-of-type(4) { --polaroid-rotate: -2deg; }

.media-photo-item--polaroid:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.media-photo-item--polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.media-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.media-photo-item--large img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  /* Nudge crop left so more of the person is revealed */
  object-position: 65% 40%;
}

@media (max-width: 640px) {
  .media-photo-item--large img {
    min-height: 240px;
  }
}

/* Legacy gallery grid (if used elsewhere) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-hint {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-hint code {
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Music / Releases (Merch page) */
.music-section {
  max-width: 900px;
}

.music-section-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--accent);
}

.releases-subtitle {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.releases-singles {
  margin-bottom: 2.5rem;
}

.releases-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.release-cover {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.release-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.release-cover-title {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

.release-feat {
  display: block;
  font-size: 0.8em;
  color: var(--muted);
}

.releases-album-section {
  max-width: 900px;
}

.releases-album-name {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

.releases-album-price {
  margin-left: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

.release-cover-link {
  display: block;
  padding: 0 1rem 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.release-cover-link:hover {
  text-decoration: underline;
}

.releases-covers--vinyl {
  margin-top: 0.5rem;
}

/* Store */
.store-section {
  max-width: 900px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.store-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-card-image {
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
}

.store-card-pdf {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  min-height: 200px;
}

.store-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.store-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-card-body {
  padding: 0.75rem 1rem;
}

.store-card-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: var(--text);
}

.store-price {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.store-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}

.store-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.contact-section {
  max-width: 600px;
}

.contact-blocks {
  display: grid;
  gap: 2rem;
}

.contact-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-block p {
  margin: 0 0 0.5rem;
}

/* Only style the booking email as a text link, not the social buttons */
.contact-block > p + a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block > p + a:hover {
  text-decoration: underline;
}

.social-links {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links li {
  margin: 0;
}

/* Button-style social links */
.contact-block .social-links a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.contact-block .social-links a:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(159, 226, 191, 0.25);
}

.section {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.section p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}
