/* Base styles */
:root {
  --dark-bg: #111111; /* Updated background color */
  --text-color: #ffffff;
  --link-color: #ffffff;
  --link-hover-color: #cccccc;
  --spacing-sm: 8px; /* Scaled back spacing */
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --font-stack: "Century Gothic", "Futura", -apple-system, sans-serif;
  --menu-transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px; /* Updated base font size to 19px (in the 18-20px range) */
}

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

p {
  color: #999999;
  font-weight: 100;
  font-size: 0.79rem;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.site-header a,
.site-footer a,
.btn,
.button {
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.page {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* Header */
:root {
  --header-h-mobile: 70px;
}

.site-header {
  padding: var(--spacing-lg) 0;
  margin-bottom: var(--spacing-xl);
  position: relative;
  width: 100%;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-xl);
  text-align: center;
  position: relative;
}

.site-title {
  font-size: 1.47rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  white-space: normal;
  margin-bottom: var(--spacing-md);
  width: auto;
  max-width: 70%;
}

.site-nav {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  font-size: 0.79rem; /* Proportionally adjusted to base font */
  letter-spacing: 1px;
  text-transform: uppercase; /* Still uppercase */
  margin: 0 auto;
  width: auto;
  margin-right: var(--spacing-lg);
}

.nav-link {
  text-transform: uppercase; /* Changed to uppercase */
  position: relative;
}

.nav-link.is-active:after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--text-color);
}

.social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  font-size: 0.79rem; /* Proportionally adjusted to base font */
  letter-spacing: 1px;
  text-transform: uppercase; /* Still uppercase */
  margin: 0 auto;
  width: auto;
  margin-left: var(--spacing-lg);
}

.social-link {
  text-transform: uppercase; /* Still uppercase */
  opacity: 0.8;
  font-size: 0.79rem; /* Proportionally adjusted to base font */
}

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

/* Page content */
.page-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: var(--spacing-xl);
  font-weight: normal;
  font-size: 1.26rem; /* Set to 24px (1.26 * 19px) */
  margin-top: var(--spacing-lg);
}

.section-heading {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-md);
  font-weight: normal;
  font-size: 0.95rem;
  color: var(--text-color);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Release sections */
.release {
  max-width: 450px; /* Scaled back */
  margin: 0 auto var(--spacing-xl);
  text-align: center;
  padding: var(--spacing-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.release-art {
  max-width: 100%;
  margin: 0 auto var(--spacing-lg);
}

.release-heading {
  text-transform: uppercase; /* Still uppercase */
  font-weight: normal;
  margin-bottom: var(--spacing-md);
  letter-spacing: 2px;
  font-size: 0.95rem; /* Proportionally adjusted to base font */
  margin-top: var(--spacing-md);
}

.platform-links {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 0.79rem; /* Proportionally adjusted to base font */
  letter-spacing: 1.5px;
  white-space: nowrap; /* Prevent text wrapping */
}

.platform-links a {
  display: inline-block;
  margin: 0 var(--spacing-sm);
  position: relative;
}

.platform-links a {
  text-transform: uppercase; /* Changed to uppercase */
  opacity: 0.8;
}

.platform-links a:hover {
  opacity: 1;
}

.dot {
  opacity: 0.5;
  margin: 0 var(--spacing-sm);
}

.cta-row {
  margin-top: var(--spacing-lg);
}

.button {
  display: inline-block;
  padding: 6px 12px; /* Scaled back padding */
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase; /* Still uppercase */
  transition: background-color 0.2s ease;
  font-size: 0.79rem; /* Proportionally adjusted to base font */
  letter-spacing: 1.5px;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  /* Removed border-top */
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  width: 100%;
}

.footer-small {
  font-size: 0.79rem; /* Proportionally adjusted to base font */
  color: #999999;
  text-transform: uppercase; /* Still uppercase */
}

/* Add container for navigation and social links */
.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* Media queries */
@media (min-width: 1024px) {
  .site-title {
    white-space: nowrap;
    max-width: 70%;
  }
  
  .nav-container {
    margin-top: var(--spacing-md);
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1500;
  font-size: 1.5rem;
  color: var(--text-color);
  transition: opacity 0.2s ease;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Gallery Styles */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center incomplete rows */
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  max-width: 100%;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  width: calc(25% - var(--spacing-lg) * 3 / 4); /* 4 columns on desktop */
  aspect-ratio: 1/1; /* Square thumbnails */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Gallery Section Headings */
.gallery-section-title {
  text-align: center;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #999;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

/* Mobile: 3 columns minimum on all narrow viewports */
@media (max-width: 1023px) {
  .gallery-item {
    width: calc(33.333% - var(--spacing-md) * 2 / 3); /* 3 columns on mobile */
  }
  
  .gallery-grid {
    gap: var(--spacing-md);
  }
}


/* Custom Thin Hamburger Icon */
.hamburger-menu .fa-bars {
  font-family: sans-serif; /* Reset font to avoid fa glyph */
  position: relative;
  width: 24px;
  height: 2px; /* Middle line */
  background-color: var(--text-color);
  border-radius: 1px;
  display: block;
}

.hamburger-menu .fa-bars::before,
.hamburger-menu .fa-bars::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px; /* Top and Bottom lines */
  background-color: var(--text-color);
  border-radius: 1px;
  left: 0;
}

.hamburger-menu .fa-bars::before {
  top: -8px; /* Spacing for top line */
}

.hamburger-menu .fa-bars::after {
  top: 8px; /* Spacing for bottom line */
}

.hamburger-menu:hover {
  opacity: 0.7;
}

/* Mobile Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: #000000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: grid;
  grid-template-rows: var(--header-h-mobile) 1fr;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-header {
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--spacing-md);
}

.menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: var(--spacing-md);
}

.menu-inner .site-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0;
  width: auto;
}

.menu-inner .nav-link {
  font-size: 1rem;
  letter-spacing: 3px;
  font-weight: normal;
  color: #ffffff;
  text-decoration: none;
  opacity: 1;
}

.menu-inner .nav-link.is-active:after {
  display: none;
}

.menu-inner .social {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: auto;
  margin: 0;
}

.menu-inner .social-link {
  font-size: 1.1rem;
  opacity: 1;
}

.menu-close {
  cursor: pointer;
  z-index: 2100;
  color: #ffffff;
  transition: opacity 0.2s ease;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Custom Thin X Icon */
.menu-close .fa-times {
  font-family: sans-serif;
  position: relative;
  width: 24px;
  height: 24px;
}
.menu-close .fa-times::before,
.menu-close .fa-times::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  top: 50%;
  left: 50%;
}
.menu-close .fa-times::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-close .fa-times::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close:hover {
  opacity: 0.7;
}

@media (max-width: 1023px) {
  .site-header {
    padding: 0;
    margin-bottom: var(--spacing-md);
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h-mobile);
    padding: 0 var(--spacing-md);
  }
  
  .site-title {
    margin-bottom: 0;
    font-size: clamp(0.7rem, 3.2vw, 1.2rem);
    letter-spacing: 2px;
    white-space: nowrap;
    min-width: 0;
    max-width: calc(100% - 50px);
  }
  
  .nav-container, .site-nav, .social {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }

  /* Allow platform links to wrap on mobile */
  .platform-links {
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px;
  }
  
  .platform-links a {
    margin: 5px;
  }
  
  .dot {
    display: none;
  }
}

/* Ensure footer year is updated */
@media (prefers-color-scheme: dark) {
  :root {
    --dark-bg: #111111;
    --text-color: #ffffff;
  }
}

/* Video Section Styles */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  padding: 0 var(--spacing-md); /* Add padding for mobile consistency */
}

.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 560px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin-bottom: 0;
  background-color: #000;
}

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

/* Shows Page */
.shows-list {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.shows-list p {
  margin-bottom: var(--spacing-lg);
  font-size: 0.79rem;
  letter-spacing: 1px;
  line-height: 1.8;
  font-weight: 100;
}

.shows-past-heading {
  margin-top: var(--spacing-xl);
}

.show-row {
  font-size: 0.79rem;
  letter-spacing: 1px;
  line-height: 1.8;
  font-weight: 100;
  color: #999999;
  text-align: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.show-date {
  color: #ffffff;
  display: block;
}

.show-info {
  display: block;
  color: #ffffff;
}

.show-event {
  color: #999999;
}

.show-link {
  display: block;
}

.shows-upcoming .show-date {
  color: #ffffff;
}

.shows-upcoming .show-event {
  color: #999999;
}

.shows-upcoming a {
  color: #ffffff;
}

@media (min-width: 1024px) {
  .show-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: var(--spacing-lg);
    text-align: left;
    align-items: start;
  }

  .show-date,
  .show-info,
  .show-link {
    display: inline;
  }

  .show-link {
    text-align: right;
    white-space: nowrap;
  }
}

/* Bio Page */
.bio-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.bio-quote {
  font-size: 1rem;
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-lg);
  line-height: 1.6;
}

.quote-attribution {
  display: block;
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  color: #999999;
}

.bio-image {
  margin-bottom: var(--spacing-sm);
}

.bio-image img {
  margin: 0 auto;
  max-width: 100%;
}

.photo-credit {
  font-size: 0.7rem;
  color: #666666;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
}

.photo-credit a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-credit a:hover {
  color: var(--link-hover-color);
}

.bio-text {
  margin-bottom: var(--spacing-xl);
  padding: 0 var(--spacing-md);
}

.bio-text p {
  margin-bottom: var(--spacing-md);
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bio-links {
  margin-top: var(--spacing-xl);
}

.bio-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.italic-text {
  font-style: italic;
  text-decoration: none;
}

/* Contact Page */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  margin-bottom: var(--spacing-xl);
  text-align: left;
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: #333333;
  border: none;
  color: #ffffff;
  font-family: var(--font-stack);
  font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888888;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 1px solid #666666;
  background-color: #444444;
}

.submit-button {
  display: block;
  margin: var(--spacing-xl) auto 0;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  font-family: var(--font-stack);
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.contact-email {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.contact-email a {
  color: #999999;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-email a:hover {
  color: #ffffff;
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border: 1px solid #333;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3001;
  transition: color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  user-select: none;
  transition: background-color 0.2s;
  z-index: 3001;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0;
    width: 40px;
    height: 40px;
    background-color: transparent;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}
