/* styles.css */

/* home page */
body {
  margin: 0;
  background: radial-gradient(#1b1b1c, #2d2d2d);
  color: #fff;
  font-weight: 100;
  font-family: Arial, Helvetica, sans-serif;
  overflow-y: scroll;
}

.site-header {
  background: #fff;
  padding: 40px 50px;
  position: relative;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 80px;
  display: block;
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right a {
  color: #000;
  text-decoration: none;
  font-weight: 200;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.nav-left {
  flex: 1;
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.nav-right a:hover {
  text-decoration: underline;
}

main {
  position: relative;
  background-image: url('slogs.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  display: none;
  position: center; /* hidden until clicked */
}

.video-overlay {
  display: none; /* hidden until clicked */
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}

.overlay-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.close-video {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 6;
}

.close-video:hover {
  background: #ddd;
}

.overlay-img {
  width: 70%;
  height: 70%;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.overlay-img:hover {
  filter: brightness(.6) invert(23%) sepia(90%) saturate(500%) hue-rotate(250deg);
}

.overlay-container {
  position: relative;
  display: inline-block;
}

.overlay-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgb(102, 33, 148), transparent);
  mix-blend-mode: hue;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.overlay-container:hover::after {
  opacity: 1;
  animation: redPulse 4s ease infinite alternate;
}

/* map section (upcoming shows) */
.map-section {
  font-weight: 100; 
  font-size: 1.2em;
  margin-bottom: 30px;
  letter-spacing: 1px;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;

  /* Background image with purple overlay */
  background: 
    linear-gradient(rgba(66, 13, 89, 0.792), rgba(61, 15, 68, 0.841)),
    url('../website/tile.jpg') no-repeat center center;
  background-size: cover;
}

/* title of upcoming shows */
.map-section h1 {
  font-weight: 200;  /* thinner font */
  font-size: 2.5em;    /* smaller than before */
  margin-bottom: 30px;
}

.map-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.map-container iframe {
  width: 80%;
  max-width: 800px;
  height: 400px;
  border-radius: 10px;
  border: 2px solid #411c5b;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.map-section .event-link {
  display: block;
  text-align: center;   /* left-align inside center container */
  max-width: 500px;   /* optional: limit width */
  margin: 0 auto 20px auto; /* center column with bottom spacing */
  color: #bea8d9;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}

.map-section .event-link:hover {
  color: #9d4df0;
}

.event-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  z-index: 9999;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.event-popup h2 {
  margin-top: 0;
}

.event-popup .add-calendar {
  display: inline-block;
  margin-top: 15px;
  background: #411c5b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.event-popup .add-calendar:hover {
  background: #5e2b85;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

.event-datetime {
  display: inline-flex !important;   /* puts children on the same line */
  align-items: baseline;
  justify-content: center;
  gap: 8px;                         /* space between date and time */
  flex-wrap: nowrap;                 /* prevent wrapping on mobile unless necessary */
}

.event-datetime h2 {
  font-size: 1.8rem;  /* date size */
  color: #fff;
  margin: 0;
  padding: 0;
  font-weight: 400;
  display: inline-block;
}

.event-datetime h3 {
  font-size: 1.4rem;  /* smaller time size */
  color: #ccc;
  margin: 0;
  padding: 0;
  font-weight: 300;
  display: inline-block;
}

.event-datetime h2 {
  font-size: 1.8rem;
}

.event-datetime h3 {
  font-size: 1.4rem;
  color: #ccc; /* softer for time */
}

/* Optional: spacing between event entries */
.event-item {
  margin-bottom: 30px;
}

/* about page */
.about-main {
  background: linear-gradient(to bottom right, rgb(0, 0, 0), rgb(0, 0, 0));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-image-section {
  position: top;
  width: 90%;
  z-index: 2;
}

.hero-cutout {
  display: block;
  width: 90%; 
  height: auto;
  position: relative;
  z-index: 2;
  margin-top: -500px;
  margin-bottom: 0px;
}

.site-header {
  position: relative;
  z-index: 1;
}

.about-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
  z-index: 3;
  background: none;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.band-photo {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.hotspot {
  position: absolute;
  cursor: pointer;
}

/* band member hotspots */
#brent {
  top: 25%;
  left: 16%;
  width: 8%;
  height: 20%;
}

#ian {
  top: 35%;
  left: 28%;
  width: 8%;
  height: 20%;
}

#zeus {
  top: 35%;
  left: 56%;
  width: 8%;
  height: 20%;
}

#dan {
  top: 8%;
  left: 10%;
  width: 8%;
  height: 20%;
}

#bob {
  top: 15%;
  left: 78%;
  width: 8%;
  height: 20%;
}

/* Popup bio modal */
.bio-popup {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  max-width: 400px;
  padding: 30px;
  border-radius: 8px;
  z-index: 999;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.bio-popup.active {
  display: block;
}

.bio-popup .close-bio {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* events page */
.events-calendar {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  text-align: center;
}

.events-calendar .background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../website/events.png') no-repeat center center;
  background-size: cover;
  filter: grayscale(100%) brightness(0.7);
  z-index: 0;
}

.events-calendar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250, 250, 250, 0);
  z-index: 1;
}

.events-calendar .content {
  position: relative;
  z-index: 2;
  padding: 100px 20px;
  color: #fff;
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 40px auto 0;
}

.event {
  background: rgba(249, 249, 249, 0.8);
  color: #000;
  padding: 30px;
  border-radius: 8px;
}

.add-to-calendar {
  display: inline-block;
  margin-top: 10px;
  background: #411c5b;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.add-to-calendar:hover {
  background: #c2185b;
}

/* media page */
.media-page {
  padding: 80px 20px;
  text-align: center;
  background: #000 url('../website/media.png') no-repeat center center;
  color: #fff;
  position: relative;
}

.media-page h1 {
  font-size: 3rem;
  margin-bottom: 40px;
}

.media-page h2 {
  font-size: 2rem;
  margin-top: 60px;
  margin-bottom: 20px;
}

.video-embed, .soundcloud-embed {
  margin: 20px auto;
  max-width: 800px;
}

.video-embed iframe,
.soundcloud-embed iframe {
  width: 100%;
  border-radius: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* --- Contact Page Layout --- */
.contact-page {
  background: #000;
  color: #fff;
  padding: 60px 0;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

.contact-left {
  flex: 1;
  display: flex;
  justify-content: center;
}

.contact-photo {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.contact-right {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.contact-right h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-right p {
  margin-bottom: 25px;
  line-height: 1.5;
  color: #ccc;
}

.contact-form {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777;
}

.contact-form button {
  background: #7a2bdc;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #9d4df0;
}

/* --- MOBILE OPTIMIZATION --- */
@media only screen and (max-width: 992px) {
  /* Header adjustments */
  .site-header {
    padding: 20px 15px;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-left,
  .nav-right {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .logo img {
    height: 00px;
  }

  .nav-right a {
    font-size: 14px;
  }

  /* Main section adjustments */
  main {
    background-image: url('window.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #000;
  }

  .overlay-img {
    width: 90%;
    height: auto;
  }

  /* Map section */
  .map-section {
    padding: 30px 10px;
  }

  .map-section h1 {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .map-container iframe {
    width: 100%;
    height: 300px;
  }

  .map-section .event-link {
    font-size: 14px;
    max-width: 100%;
  }

  /* About page */
  .about-text {
    position: relative;       /* no longer absolute */
    top: auto;
    color: #bfbfbf;
    left: auto;
    transform: none;          /* remove translateX */
    margin: 20px auto 40px;   /* space above/below */
    max-width: 90%;           /* fits nicely on screen */
    font-size: 1.4rem;        /* smaller text for mobile */
    text-align: center;      /* keep it centered */
  }

  .hero-cutout {
    margin-top: 0;            /* remove negative margin */
    width: 100%;
    height: auto;
    display: block;           /* ensure it takes up space */
  }

  .band-photo {
    width: 100%;
  }

  /* Media page */
  .media-page h1 {
    font-size: 2rem;
  }

  .media-page h2 {
    font-size: 1.5rem;
  }

  .video-embed,
  .soundcloud-embed {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px auto 0;
  }

  /* Contact page */
  .contact-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 10px;
  }

  .contact-left,
  .contact-right {
    max-width: 100%;
    text-align: center;
  }

  .contact-right h1 {
    font-size: 2rem;
  }

  .contact-right p {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 14px;
  }

  .contact-page {
    background: #000 !important; /* Force plain black background */
    background-image: none !important;
  }

  /* Make contact photo smaller */
  .contact-photo {
    max-width: 300px;   /* smaller on mobile */
    width: 80%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  }

  /* About page black background override */
  .about-main {
    background: #000 !important;
    background-image: none !important;
  }

  .media-page {
    background: #000 !important;
    background-image: none !important;
  }
}
