/* RockCentral Promotions
   Main stylesheet for static pages.
*/

:root {
  --bg: #111111;
  --text: #f7f7f7;
  --muted: #d6d6d6;
  --yellow: #ffd200;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 210, 0, 0.12), transparent 28rem),
    linear-gradient(180deg, #171717 0%, #090909 100%);
}

a {
  color: inherit;
}

.page {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 1.75rem 0 2rem;
  text-align: center;
}

.page.narrow {
  width: min(100% - 2rem, 720px);
}

.logo-wrap {
  margin: 0 auto 1rem;
}

.logo {
  display: block;
  width: min(78vw, 260px);
  height: auto;
  margin: 0 auto;
}

.tagline {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.45;
  color: var(--muted);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 1rem auto 2rem;
  color: var(--muted);
}

.top-links a {
  text-decoration: none;
  font-weight: 700;
}

.top-links a:hover,
.top-links a:focus-visible {
  color: var(--yellow);
  text-decoration: underline;
}

h1 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--yellow);
}

h2 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.1;
  color: var(--yellow);
}

.intro {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.button-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem auto;
  width: min(100%, 560px);
}

.button {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.button.primary {
  background: var(--yellow);
  color: #111111;
  border-color: var(--yellow);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ffe04a;
  border-color: #ffe04a;
}

.section-title {
  margin: 2rem 0 1rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.1;
  color: var(--yellow);
}

.latest-shows {
  margin: 2rem 0;
}

/* Homepage TixEvery widget only */
.latest-shows .widget-wrap {
  width: min(100vw - 2rem, 980px);
  margin-left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(0.6rem, 2vw, 1rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.latest-shows iframe,
.latest-shows embed,
.latest-shows object,
.latest-shows .widget-wrap > div {
  max-width: 100%;
}

/* TicketSource iframe pages, such as /gigs/ */
.panel {
  width: min(100vw - 2rem, 1100px);
  margin: 2rem auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tickets-frame {
  display: block;
  width: 100%;
  min-height: 950px;
  border: 0;
  background: #ffffff;
}

/* Google Maps embeds */
.map-wrap {
  width: min(100vw - 2rem, 900px);
  margin: 1.5rem auto 2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.04);
}

.map-frame,
iframe[src*="google.com/maps"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 340px !important;
  min-height: 340px !important;
  border: 0 !important;
  background: #ffffff;
}

/* Optional wrappers for other ticket widgets */
.ticket-embed,
.ticketsource-embed,
.ticket-widget {
  width: min(100vw - 2rem, 1100px);
  margin: 2rem auto;
}

.ticket-embed iframe,
.ticketsource-embed iframe,
.ticket-widget iframe {
  display: block;
  width: 100% !important;
  min-height: 760px;
  border: 0;
}

/* Direct TixEvery venue/listing widget support */
[data-tixevery-widget] {
  display: block;
  width: min(100vw - 2rem, 1100px);
  margin: 2rem auto;
}

[data-tixevery-widget] iframe {
  display: block;
  width: 100% !important;
  min-height: 760px;
  border: 0;
}

.small-text {
  max-width: 620px;
  margin: 2rem auto 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.2rem;
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--yellow);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page,
  .page.narrow {
    width: min(100% - 1.25rem, 720px);
    padding-top: 1.25rem;
  }

  .logo {
    width: min(72vw, 220px);
  }

  .top-links {
    gap: 0.6rem 1rem;
    margin-bottom: 1.5rem;
  }

  .latest-shows .widget-wrap {
    width: min(100vw - 1rem, 980px);
    border-radius: 16px;
  }

  .button {
    padding: 0.9rem 1rem;
  }

  .panel {
    width: min(100vw - 1rem, 1100px);
    padding: 0.5rem;
    border-radius: 16px;
  }

  .tickets-frame {
    min-height: 900px;
  }

  .map-wrap {
    width: min(100vw - 1rem, 900px);
    border-radius: 14px;
    margin-top: 1rem;
  }

  .map-frame,
  iframe[src*="google.com/maps"] {
    height: 280px !important;
    min-height: 280px !important;
  }

  .ticket-embed,
  .ticketsource-embed,
  .ticket-widget {
    width: min(100vw - 1rem, 1100px);
  }

  .ticket-embed iframe,
  .ticketsource-embed iframe,
  .ticket-widget iframe {
    min-height: 720px;
  }

  [data-tixevery-widget] {
    width: min(100vw - 1rem, 1100px);
  }

  [data-tixevery-widget] iframe {
    min-height: 720px;
  }
}
