/* ==========================================================================
   Ruby Event Center - Single Event Detail Page Styles
   Split-Screen Luxury Layout (Left Media Banner / Right Content Panel)
   Faithfully patterned after the Ruby CRM Admin Login Experience (admin/login.php)
   ========================================================================== */

:root {
  --ruby: #76172c;
  --ruby-dark: #52101f;
  --ruby-light: #fff1f4;
  --ink: #211b1c;
  --muted: #71686a;
  --line: #ddd5d3;
  --line-light: #ece6e4;
  --paper: #fbf9f7;
  --gold: #d6b26e;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body.event-single-page {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ensure header is visible with luxury glassmorphic background on the single event page */
#site-header {
  display: block !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(221, 213, 211, 0.75) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

#site-header nav a,
#site-header a,
#site-header button,
#site-header svg {
  color: var(--ink) !important;
}

#site-header nav a:hover,
#site-header a:hover {
  color: var(--ruby) !important;
}

/* Desktop: at the top of the page the header floats transparent over the split
   (white nav + logo over the flyer, dark items over the light panel). Once the
   page scrolls, main.js drops .is-light-page and the white glass bar returns. */
@media (min-width: 1024px) {
  #site-header.is-light-page {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
  }

  #site-header.is-light-page nav a {
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  }

  #site-header.is-light-page nav a:hover {
    color: #ff2a2a !important;
  }

  #site-header.is-light-page .site-header-logo {
    filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0, 0, 0, .35));
  }
}

/* Sticky CTA bar remains hidden on event page to keep bottom clean */
#sticky-cta-bar {
  display: none !important;
}

/* =========================================================================
   MAIN SPLIT-SCREEN SHELL
   Desktop: Left banner takes ~57% (> 50%), Right content takes ~43%
   ========================================================================= */
.event-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(460px, .95fr);
  min-height: 100vh;
  width: 100%;
}

/* =========================================================================
   LEFT SIDE: FULL-HEIGHT VENUE & CONCERT MEDIA BANNER
   ========================================================================= */
.venue-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(6.5rem, 8.5vw, 8.5rem) clamp(2.5rem, 4.5vw, 5rem) clamp(2.5rem, 4.5vw, 5rem);
  color: #fff;
  background: var(--ruby-dark);
}

@media (min-width: 961px) {
  .venue-panel {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.venue-panel::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  content: '';
  transform: scale(1.015);
  animation: settle 1.2s cubic-bezier(.2,.7,.2,1) both;
}

.venue-panel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(38, 8, 17, .42) 0%, rgba(38, 8, 17, .12) 35%, rgba(38, 8, 17, .88) 100%),
    linear-gradient(90deg, rgba(82, 16, 31, .52), transparent 65%);
  content: '';
}

.venue-content {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.5rem;
  z-index: 2;
}

.venue-badge-pill {
  margin-bottom: 1.25rem;
}

.venue-logo-link {
  display: inline-block;
  align-self: flex-start;
  transition: opacity .18s ease, transform .18s ease;
}

.venue-logo-link:hover {
  opacity: .9;
  transform: scale(1.02);
}

.venue-logo {
  width: min(16rem, 55%);
  height: auto;
  filter: brightness(0) invert(1);
}

.venue-copy {
  max-width: 42rem;
}

.venue-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  color: #f1dbad;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.venue-eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  content: '';
}

.venue-copy h1 {
  margin: 0;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
  color: #ffffff;
}

.venue-copy > p:last-child {
  max-width: 35rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.95rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

/* =========================================================================
   RIGHT SIDE: EDITORIAL DETAIL & EXPLORE PANEL
   ========================================================================= */
.detail-panel {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(7.5rem, 9.5vw, 9.5rem) clamp(1.5rem, 4vw, 4rem) clamp(3rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 178, 110, .13), transparent 32%),
    var(--paper);
  overflow-y: auto;
}

.detail-wrap {
  width: min(100%, 35rem);
}

/* TOP NAVIGATION */
.top-nav {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .5rem .85rem;
  margin-left: -.85rem;
  border-radius: .5rem;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.back-link:hover {
  color: var(--ruby);
  background-color: rgba(118, 23, 44, .06);
  transform: translateX(-2px);
}

.back-link svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform .18s ease;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* EVENT HEADING */
.event-heading {
  margin-bottom: 1.75rem;
}

.heading-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.form-eyebrow {
  margin: 0;
  color: var(--ruby);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.event-heading h2 {
  margin: .35rem 0 .5rem;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--ink);
}

.artist-sub {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .02em;
}

.artist-sub strong {
  color: var(--ruby);
  font-weight: 700;
}

/* BADGES */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .65rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.badge-live {
  color: var(--ruby);
  background: var(--ruby-light);
  border: 1px solid rgba(118, 23, 44, .2);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 0 2px rgba(118, 23, 44, .25);
}

.badge-ended {
  color: #6a6365;
  background: #ede7e5;
  border: 1px solid var(--line);
}

.badge-current {
  padding: .25rem .55rem;
  border-radius: .4rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ruby);
  background: var(--ruby-light);
  border: 1px solid rgba(118, 23, 44, .2);
}

/* SPECS CARD */
.specs-card {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: .85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: .88rem;
}

.spec-row:last-child {
  border-bottom: none;
  padding-bottom: .2rem;
}

.spec-label {
  color: var(--muted);
  font-weight: 500;
}

.spec-val {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.price-row {
  background: #fdfaf8;
  margin: .35rem -.6rem 0;
  padding: .75rem .6rem;
  border-radius: .5rem;
  border-bottom: none;
}

.price-val {
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--ruby);
  font-weight: 400;
}

.price-val small {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: var(--muted);
}

/* SYNOPSIS */
.event-desc {
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.event-desc p {
  margin: 0;
}

/* BUTTONS */
.actions-group {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.submit-button {
  width: 100%;
  min-height: 3.4rem;
  border: 1px solid var(--ruby);
  border-radius: .6rem;
  color: #fff;
  background: var(--ruby);
  box-shadow: 0 10px 24px rgba(82, 16, 31, .16);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--ruby-dark);
  box-shadow: 0 13px 30px rgba(82, 16, 31, .22);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(118, 23, 44, .25);
  outline-offset: 3px;
}

.submit-button:disabled,
.submit-button.is-disabled {
  background: #ece6e4;
  border-color: #d8cecc;
  color: #9c9193;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  color: #3f3839;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.secondary-button:hover {
  border-color: var(--ruby);
  color: var(--ruby);
  background: #fff9fa;
  transform: translateY(-1px);
}

/* SECTION DIVIDER */
.section-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3.5rem 0 2.5rem;
}

/* =========================================================================
   EXPLORE MORE: UPCOMING HEADLINE CONCERTS
   ========================================================================= */
.explore-section {
  margin-top: 1rem;
}

.explore-eyebrow {
  margin: 0 0 .35rem;
  color: var(--ruby);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.explore-heading {
  margin: 0 0 1.5rem;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
}

.explore-cards {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.explore-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: .85rem;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  position: relative;
}

.explore-card:hover {
  border-color: var(--ruby);
  box-shadow: 0 8px 24px rgba(82, 16, 31, .09);
  transform: translateY(-2px);
}

.explore-card.is-current {
  border-color: rgba(118, 23, 44, .35);
  background: #fffcfb;
}

.explore-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}

.explore-badge-group {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.explore-date-text {
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  font-family: 'DM Sans', monospace;
}

.explore-tickets-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: .4rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid rgba(22, 163, 74, .2);
}

.explore-show-title {
  margin: .2rem 0 .45rem;
  font-family: 'Libre Caslon Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.explore-artist-line {
  margin: 0 0 .25rem;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.explore-artist-line strong {
  color: var(--ink);
  font-weight: 700;
}

.explore-venue-line {
  margin: 0 0 1rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
}

.explore-action-row {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line-light);
  padding-top: .85rem;
  margin-top: .6rem;
}

.view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ruby);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
}

.view-details-btn:hover {
  color: var(--ruby-dark);
  transform: translateX(3px);
}

.view-details-btn.disabled {
  color: var(--muted);
  cursor: default;
  font-size: .74rem;
  letter-spacing: .06em;
}

.view-details-btn.disabled:hover {
  transform: none;
}

/* FOOTER */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.form-footer a {
  color: var(--ruby);
  font-weight: 600;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ANIMATION */
@keyframes settle {
  from { opacity: .72; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.015); }
}

/* RESPONSIVE DESIGN */
@media (max-width: 960px) {
  .event-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .venue-panel {
    min-height: 440px;
    height: 52vh;
    padding: 5.5rem 1.5rem 2rem;
    position: relative;
  }

  .venue-copy h1 {
    font-size: 2.2rem;
  }

  .detail-panel {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .venue-panel {
    min-height: 380px;
    height: 48vh;
    padding: 5rem 1.25rem 1.75rem;
  }

  .venue-logo {
    width: 12rem;
  }

  .detail-panel {
    padding: 2rem 1.25rem;
  }

  .event-heading h2 {
    font-size: 2rem;
  }

  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }

  .spec-val {
    text-align: left;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
