/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #111;
  --color-text: #eee;
  --color-accent: #d4a855;
  --color-teal: #5ba4b5;
  --color-muted: #888;
  --color-surface: #1a1a1a;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 960px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Header & Nav === */
.site-header {
  background: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

/* Diamond separator between nav items */
.nav-links li + li::before {
  content: "\25C6";
  color: var(--color-accent);
  font-size: 0.5rem;
  margin: 0 1.1rem;
  opacity: 0.7;
}

/* No diamond before the social icon */
.nav-links li.social-item::before {
  content: "";
  margin: 0 0.75rem;
}

.nav-links a {
  color: var(--color-accent);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.75;
  text-decoration: none;
}

/* Active page */
.nav-links a.active {
  color: var(--color-teal);
  opacity: 1;
}

/* Social link icon */
.social-link {
  display: flex;
  align-items: center;
  color: var(--color-accent);
}

.social-link:hover {
  opacity: 0.75;
}


/* === Site Banner === */
.site-banner {
  background: #000;
}

.site-banner img {
  display: block;
  max-width: var(--max-width);
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* === Main Content === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
  width: 100%;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

main h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

main p {
  margin-bottom: 1rem;
}

/* Embedded content (YouTube, Spotify, Bandcamp, etc.) */
main iframe {
  display: block;
  max-width: 100%;
  margin: 1rem 0;
}

/* Responsive 16:9 video wrapper */
main iframe[src*="youtube"],
main iframe[src*="youtu.be"],
main iframe[src*="vimeo"] {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* === Page Layout (content + shows sidebar) === */
.page-layout {
  display: flex;
  gap: 2rem;
}

.page-content {
  flex: 1;
  min-width: 0;
}

.shows-sidebar {
  width: 260px;
  flex-shrink: 0;
}

.shows-sidebar h2 {
  font-size: 1.1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

/* === Shows === */
.shows-loading {
  color: var(--color-muted);
  font-style: italic;
}

.shows-grid {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.show-card {
  background: var(--color-surface);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}

.show-card:hover {
  border-color: var(--color-accent);
  background: #222;
}

.show-link {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.show-link:hover {
  text-decoration: none;
}

.show-date-badge {
  background: var(--color-accent);
  color: #111;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}

.show-day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.show-month {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.show-details {
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}

.show-venue {
  font-size: 0.9rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-time {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.show-location {
  color: var(--color-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Contact Form === */
.contact-form {
  max-width: 540px;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #333;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
}

.turnstile-wrapper {
  display: flex;
}

.btn-submit {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--color-accent);
  color: #111;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background: rgba(244, 67, 54, 0.15);
  color: #e57373;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* === Footer === */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid #333;
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* === Tablet — scale nav to fit === */
@media (max-width: 860px) {
  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links li + li::before {
    margin: 0 0.7rem;
  }

  .site-header nav {
    padding: 1rem;
  }
}

/* === Mobile — horizontal scroll nav === */
@media (max-width: 600px) {
  .site-header nav {
    padding: 0;
    display: block;
  }

  .nav-links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0.85rem 1rem;
    /* fade edges to hint at scroll */
    mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 0.75rem, #000 calc(100% - 0.75rem), transparent);
  }

  /* hide scrollbar */
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links {
    scrollbar-width: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-links li + li::before {
    font-size: 0.35rem;
    margin: 0 0.6rem;
  }

  .nav-links li.social-item::before {
    margin: 0 0.5rem;
  }

  main {
    padding: 1.5rem 1rem;
  }

  main h1 {
    font-size: 1.5rem;
  }

  /* Shows sidebar → horizontal scroll strip on mobile */
  .page-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .shows-sidebar {
    width: auto;
    order: -1; /* Show above content on mobile */
  }

  .shows-grid {
    position: relative;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .shows-grid::-webkit-scrollbar {
    display: none;
  }

  /* Scroll fade overlays using pseudo-elements for smooth transitions */
  #shows-list {
    position: relative;
  }

  #shows-list::before,
  #shows-list::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0.5rem; /* match grid padding-bottom */
    width: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
  }

  #shows-list::before {
    left: -1px;
    background: linear-gradient(to right, var(--color-bg), transparent);
  }

  #shows-list::after {
    right: -1px;
    background: linear-gradient(to left, var(--color-bg), transparent);
  }

  #shows-list.can-scroll-left::before {
    opacity: 1;
  }

  #shows-list.can-scroll-right::after {
    opacity: 1;
  }

  .show-card {
    min-width: 180px;
    flex-shrink: 0;
  }
}
