/* Gordon's Alive – custom overrides
   Load this AFTER nicepage.css and the page CSS (Home.css/About.css/etc)
   so it always wins the cascade.

   Why this file exists:
   - Nicepage exports can introduce layout quirks at certain breakpoints.
   - Editing nicepage.css is a losing game (it gets regenerated).
   - A small, hand-edited override file is easy to maintain.
*/

/* =========================================================
   HERO OVERLAY – CTA button group centring (mobile landscape)
   ========================================================= */

/* Force the CTA wrapper to behave like a centred flex row/stack.
   We use higher specificity + !important to beat any competing rules.
*/
.u-section-1 .u-container-layout-1 .u-btns-1{
  /* Make sure the element is actually a flex container in every breakpoint */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  /* Prevent odd width/centering behaviours */
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;

  /* Nicepage sometimes positions items as if they were standalone blocks */
  align-self: center !important;
  flex-wrap: wrap !important;
}

/* Make each button self-centre reliably (some browsers treat anchors oddly
   inside flex + wrap when the parent was previously non-flex). */
.u-section-1 .u-container-layout-1 .u-btns-1 .u-btn{
  float: none !important;
  display: inline-flex !important;
  justify-content: center !important;
}

/* In very short landscape viewports, stack CTAs to avoid squishing/overlap
   but keep everything centred. */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px){
  .u-section-1 .u-container-layout-1 .u-btns-1{
    flex-direction: column !important;
    gap: 10px !important;
  }
  .u-section-1 .u-container-layout-1 .u-btns-1 .u-btn{
    width: 100% !important;
    max-width: 260px !important;
  }
}

/* =========================================================
   GIG LIST – venue images sizing (About/Contact)
   ========================================================= */
#ga-gigs-list .ga-gig-header{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#ga-gigs-list .ga-gig-image{
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  flex: 0 0 auto !important;
  display: block !important;
}

@media (max-width: 575px){
  #ga-gigs-list .ga-gig-header{ justify-content: center !important; }
}


/* =========================================================
   GIG LIST – integrate venue images behind the date
   ========================================================= */

#ga-gigs-list .ga-gig-datebox{
  position: relative !important;
  overflow: hidden !important;
}

/* The venue image becomes a subtle “poster” behind the date text */
#ga-gigs-list .ga-gig-datebg{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  z-index: 0 !important;

  /* Make it feel like a background, not a thumbnail */
  opacity: 0.55 !important;
  filter: saturate(1.1) contrast(1.05) !important;
  transform: scale(1.04);
}

/* Darken just enough for readability */
#ga-gigs-list .ga-gig-datebox--img::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.60), rgba(0,0,0,0.25));
}

/* Keep date text above the image + overlay */
#ga-gigs-list .ga-gig-datebox--img > :not(.ga-gig-datebg){
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}


/* =========================================================
   GIG LIST – ticket link as a button on the right
   ========================================================= */

/* Only add the 3rd column when a gig actually has an action button */
#ga-gigs-list .ga-gig--has-action{
  grid-template-columns: 84px 1fr auto !important;
}

#ga-gigs-list .ga-gig-actions{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 10px !important;
}

#ga-gigs-list .ga-gig-ticketbtn{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
}

#ga-gigs-list .ga-gig-ticketbtn:hover{
  background: rgba(255,255,255,0.14) !important;
}

#ga-gigs-list .ga-gig-ticketbtn:active{
  transform: translateY(1px);
}

@media (max-width: 575px){
  #ga-gigs-list .ga-gig--has-action{
    grid-template-columns: 1fr !important;
  }
  #ga-gigs-list .ga-gig-actions{
    justify-content: center !important;
    align-items: center !important;
    margin-top: 10px !important;
  }
  #ga-gigs-list .ga-gig-ticketbtn{
    width: 100% !important;
    max-width: 260px !important;
  }
}


/* =========================================================
   GIG LIST – featured next gig
   ========================================================= */

#ga-gigs-list .ga-gig--featured{
  position: relative !important;
  /* Subtle red tint so the next gig pops without screaming */
  border-color: rgba(239,68,68,0.45) !important;
  background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(239,68,68,0.08)) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45) !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-datebox{
  border-color: rgba(255,255,255,0.28) !important;
  border-radius: 18px !important;
  padding: 12px 10px !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-dow{
  font-size: 0.95rem !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-dom{
  font-size: 2.35rem !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-mon{
  font-size: 1.0rem !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-venue{
  font-size: 1.35rem !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-sub{
  font-size: 1.02rem !important;
}

#ga-gigs-list .ga-gig--featured .ga-gig-ticketbtn{
  padding: 12px 18px !important;
}

/* Corner ribbon label (top-right) */
#ga-gigs-list .ga-gig-ribbon{
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  width: 116px !important;
  height: 116px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 6 !important;
}

#ga-gigs-list .ga-gig-ribbon span{
  position: absolute !important;
  top: 24px !important;
  right: -46px !important;
  width: 180px !important;
  padding: 7px 0 !important;
  text-align: center !important;
  background: rgba(239,68,68,0.72) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  color: rgba(255,255,255,0.95) !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.38) !important;
  transform: rotate(45deg) !important;
}

@media (max-width: 575px){
  #ga-gigs-list .ga-gig--featured{
    padding: 18px 14px !important;
  }

  #ga-gigs-list .ga-gig-ribbon{
    width: 104px !important;
    height: 104px !important;
    top: -4px !important;
    right: -4px !important;
  }

  #ga-gigs-list .ga-gig-ribbon span{
    top: 22px !important;
    right: -48px !important;
    width: 176px !important;
    font-size: 0.72rem !important;
  }
}


/* ===========================
   Tablet nav: use hamburger/offcanvas (stacked menu) up to 991px
   Nicepage menu is normally non-responsive; we enable it and then
   explicitly re-enable desktop nav at >= 992px.
   =========================== */

@media (max-width: 991px){
  nav.u-menu.u-enable-responsive .u-nav-container{
    display: none !important;
  }
  nav.u-menu.u-enable-responsive .menu-collapse{
    display: block !important;
  }
  nav.u-menu.u-enable-responsive .u-nav-container-collapse{
    display: flex !important;
  }

  /* Keep the hamburger nicely centred in the header */
  .u-header .u-sheet-1{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .u-header .u-menu-1{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .u-header .u-menu-1 .menu-collapse{
    margin-left: auto !important;
    margin-right: auto !important;
  }


/* Ensure off-canvas menu items stack vertically on tablet/mobile */
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-sidenav .u-nav,
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-popupmenu-items,
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-nav-2{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 70px 18px 18px !important; /* clears the close icon */
}

nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-sidenav .u-nav-item,
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-nav-2 .u-nav-item{
  display: block !important;
  width: 100% !important;
}

nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-sidenav .u-nav-link,
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-nav-2 .u-nav-link{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  white-space: normal !important;
  border-radius: 999px !important;
  padding: 14px 18px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
}

nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-sidenav .u-nav-link:hover,
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-nav-2 .u-nav-link:hover{
  background: rgba(255,255,255,0.08) !important;
}

/* Keep side-nav a sensible width on larger tablets */
nav.u-menu.u-enable-responsive .u-nav-container-collapse .u-sidenav{
  width: 100% !important;
  max-width: 420px !important;
}
}

@media (min-width: 992px){
  /* Restore classic horizontal nav on desktop */
  nav.u-menu.u-enable-responsive .u-nav-container{
    display: flex !important;
  }
  nav.u-menu.u-enable-responsive .menu-collapse{
    display: none !important;
  }
  nav.u-menu.u-enable-responsive .u-nav-container-collapse{
    display: none !important;
  }
}
