/*
Theme Name: Clubbed Out
Author: Clubbed Out
Description: A custom WordPress theme for the Clubbed Out Brisbane nightlife history project.
Version: 1.1.5
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clubbed-out
*/

:root {
  --club-bg: #1a1a1a;
  --club-bg-deep: #111111;
  --club-card: #212121;
  --club-muted: #292929;
  --club-text: #f5f5f5;
  --club-soft: #a1a1a1;
  --club-yellow: #f1d93b;
  --club-red: #eb4337;
  --club-blue: #2690c9;
  --club-border: #373e8b;
  --club-max: 1180px;
  --club-heading: "Bebas Neue", Impact, sans-serif;
  --club-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --club-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--club-bg);
  color: var(--club-text);
  font-family: var(--club-body);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.club-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.club-container {
  width: min(100% - 2rem, var(--club-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.94);
  border-bottom: 1px solid rgba(55, 62, 139, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: auto;
  height: 76px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu text: top navigation links. */
.primary-nav a,
.nav-fallback a {
  color: var(--club-soft);
  font-family: var(--club-condensed);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.nav-fallback a:hover {
  color: var(--club-yellow);
}

.nav-cta,
.club-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  background: var(--club-yellow);
  color: #1a1a1a;
  border: 1px solid var(--club-yellow);
  border-radius: 0;
  box-shadow: 0 0 18px rgba(241, 217, 59, 0.28);
  font-family: var(--club-condensed);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.club-button:hover {
  background: #ffe955;
  color: #111111;
  box-shadow: 0 0 26px rgba(241, 217, 59, 0.45);
  transform: translateY(-1px);
}

.club-button.secondary {
  background: transparent;
  color: var(--club-text);
  border-color: rgba(38, 144, 201, 0.85);
  box-shadow: 0 0 18px rgba(38, 144, 201, 0.2);
}

.club-button.secondary:hover {
  background: rgba(38, 144, 201, 0.14);
  color: var(--club-text);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(55, 62, 139, 0.85);
  background: transparent;
  color: var(--club-yellow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.club-main {
  flex: 1;
}

.club-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.78)),
    var(--hero-image, none);
  background-position: center;
  background-size: cover;
}

.home-hero {
  background: #111111;
  box-shadow: inset 4px 0 0 rgba(38, 144, 201, 0.65);
}

.club-hero.home-hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  width: auto;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.95), rgba(17, 17, 17, 0.76) 48%, rgba(17, 17, 17, 0.94)),
    var(--hero-image, none);
  background-position: center;
  background-size: cover;
  filter: blur(3px) saturate(0.82);
  opacity: 0.72;
  transform: scale(1.03);
  z-index: 0;
}

.club-hero.home-hero::after {
  z-index: 2;
}

.club-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--club-border), var(--club-blue), var(--club-red));
  opacity: 0.85;
}

.club-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--club-border), var(--club-blue), var(--club-yellow), var(--club-red));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 5rem);
  padding: 5rem 0;
}

/* Eyebrow / small heading text: labels like "BRISBANE, 1950-2000". */
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--club-blue);
  font-family: var(--club-condensed);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.club-heading,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-title {
  --glow-color: currentColor;
  margin: 0;
  color: var(--club-yellow);
  font-family: var(--club-heading);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow:
    0 0 1px #ffffff,
    0 0 3px var(--glow-color),
    0 0 9px currentColor,
    0 0 18px currentColor;
  text-wrap: balance;
}

@supports (color: rgb(from red r g b / 0.5)) {
  .club-heading,
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-title {
    text-shadow:
      0 0 1px #ffffff,
      0 0 3px var(--glow-color),
      0 0 9px rgb(from var(--glow-color) r g b / 0.55),
      0 0 18px rgb(from var(--glow-color) r g b / 0.32),
      0 0 30px rgb(from var(--glow-color) r g b / 0.16);
  }
}

.club-heading.hero-title {
  color: var(--club-text);
  font-size: 7.4rem;
}

.club-heading.hero-title .accent,
.club-heading .accent {
  color: var(--club-yellow);
}

.club-heading.page-title {
  font-size: 5.6rem;
}

.section-title {
  font-size: 4.6rem;
}

.section-title.red {
  color: var(--club-red);
}

.section-title.blue {
  color: var(--club-blue);
}

.hero-copy {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--club-soft);
  font-size: 1.18rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-logo {
  justify-self: start;
  width: clamp(170px, 22vw, 285px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(241, 217, 59, 0.13));
}

.hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  z-index: 2;
  margin: 0;
  color: rgba(245, 245, 245, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.club-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.club-section.tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.club-section.dark {
  background: var(--club-bg-deep);
}

.club-section.card-band {
  background: var(--club-card);
}

.copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 1.2rem;
}

.copy-stack p,
.entry-content p {
  color: var(--club-soft);
}

.quote-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-block: 1px solid rgba(55, 62, 139, 0.75);
  background: #151515;
  text-align: center;
}

.quote-band blockquote {
  margin: 0;
  color: var(--club-text);
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1.25;
}

.intro-feature-section {
  background: #171717;
}

.intro-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.intro-quote {
  color: var(--club-text);
}

.quote-rule {
  width: 60px;
  height: 5px;
  margin-bottom: 2.9rem;
  background: var(--club-yellow);
  box-shadow: 0 0 10px rgba(241, 217, 59, 0.32);
}

.intro-quote blockquote {
  margin: 0;
  color: var(--club-text);
  font-family: var(--club-heading);
  font-size: 4.35rem;
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}

.intro-quote p {
  margin: 2rem 0 0;
  color: var(--club-soft);
  font-family: var(--club-condensed);
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-copy {
  padding-top: 0.4rem;
}

.intro-copy p {
  font-size: 1.05rem;
}

.intro-copy strong {
  color: var(--club-text);
}

.intro-callout {
  margin-top: 1.2rem;
  padding: 1.4rem 1.65rem;
  border-left: 4px solid var(--club-blue);
  background: rgba(33, 33, 33, 0.92);
  color: var(--club-soft);
  font-style: italic;
}

.rainbow-divider {
  width: min(900px, 100%);
  height: 2px;
  margin: 2.2rem 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--club-border), var(--club-blue), var(--club-yellow), var(--club-red));
  box-shadow:
    0 0 8px rgba(38, 144, 201, 0.45),
    0 0 14px rgba(241, 217, 59, 0.25);
}

.rainbow-divider.short {
  width: 132px;
  height: 3px;
}

.fact-grid,
.memorabilia-list,
.timeline-grid {
  display: grid;
  gap: 1rem;
}

.fact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-card,
.memory-card,
.timeline-card,
.notice-card,
.form-card,
.listing-panel {
  background: rgba(33, 33, 33, 0.92);
  border: 1px solid rgba(55, 62, 139, 0.85);
  box-shadow: 0 0 24px rgba(55, 62, 139, 0.12);
}

.fact-card {
  padding: 1.2rem;
}

.fact-card strong {
  display: block;
  color: var(--club-text);
  font-size: 1.35rem;
}

.fact-card span {
  display: block;
  color: var(--club-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timeline-grid {
  position: relative;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 2.1rem;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--club-border), var(--club-blue), var(--club-yellow), var(--club-red));
  box-shadow: 0 0 12px rgba(38, 144, 201, 0.28);
}

.timeline-card {
  position: relative;
  padding: 1.15rem;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: -1.67rem;
  left: 1.15rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--club-yellow);
  box-shadow: 0 0 10px rgba(241, 217, 59, 0.35);
}

.timeline-card .decade {
  color: var(--club-yellow);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline-card h3,
.memory-card h3 {
  margin: 0.45rem 0;
  color: var(--club-text);
  font-family: var(--club-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.timeline-card p,
.notice-card p,
.memory-card p {
  margin: 0;
  color: var(--club-soft);
}

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(55, 62, 139, 0.85);
  box-shadow: 0 0 36px rgba(38, 144, 201, 0.18);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section-kicker {
  max-width: 760px;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-card {
  overflow: hidden;
  background: rgba(33, 33, 33, 0.92);
  border: 1px solid rgba(55, 62, 139, 0.85);
  box-shadow: 0 0 24px rgba(55, 62, 139, 0.12);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--club-bg-deep);
}

.gallery-card-body {
  display: grid;
  gap: 0.65rem;
  padding: 1.05rem;
}

.gallery-card h3 {
  margin: 0;
  color: var(--club-text);
  font-family: var(--club-condensed);
  font-size: 1.45rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.gallery-card p {
  margin: 0;
  color: var(--club-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gallery-card .gallery-credit {
  color: rgba(245, 245, 245, 0.66);
  font-size: 0.78rem;
}

.gallery-note {
  margin-top: 2rem;
}

.memorabilia-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.memory-card {
  padding: 1rem 1.1rem;
}

.memory-card .dot {
  display: inline-block;
  width: 0.68rem;
  height: 0.68rem;
  margin-right: 0.55rem;
  border-radius: 999px;
  background: var(--club-yellow);
  box-shadow: 0 0 12px currentColor;
}

.memory-card:nth-child(2n) .dot {
  background: var(--club-blue);
}

.memory-card:nth-child(3n) .dot {
  background: var(--club-red);
}

.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: radial-gradient(circle at 20% 10%, rgba(38, 144, 201, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(235, 67, 55, 0.14), transparent 30%),
    #111111;
  text-align: center;
}

.cta-band p {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--club-soft);
}

.cta-band .button-row {
  justify-content: center;
}

.notice-card {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--club-blue);
}

.table-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1.1rem;
}

.table-controls {
  display: grid;
  flex: 1 1 560px;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 220px);
  gap: 0.75rem;
  max-width: 680px;
}

.club-input,
.club-select,
.club-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  background: var(--club-card);
  color: var(--club-text);
  border: 1px solid rgba(55, 62, 139, 0.9);
  border-radius: 0;
  font: inherit;
}

.club-input:focus,
.club-select:focus,
.club-textarea:focus {
  outline: 2px solid rgba(241, 217, 59, 0.45);
  outline-offset: 2px;
  border-color: var(--club-yellow);
}

.table-controls .club-input {
  width: 100%;
  min-width: 0;
}

.table-controls .club-select {
  width: 100%;
  min-width: 0;
}

.listing-count {
  flex: 0 0 auto;
  color: var(--club-soft);
  font-size: 0.85rem;
}

.listing-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(55, 62, 139, 0.95);
}

.club-listing-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: #111111;
  font-size: 0.92rem;
}

.club-listing-table th,
.club-listing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #222222;
  text-align: left;
  vertical-align: top;
}

.club-listing-table th {
  color: var(--club-soft);
  border-bottom-color: var(--club-border);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.club-sort {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-transform: inherit;
  letter-spacing: 0;
}

.club-sort:hover {
  color: var(--club-yellow);
}

.club-listing-table tbody tr:hover {
  background: rgba(33, 33, 33, 0.86);
}

.club-name-cell {
  color: var(--club-text);
  font-weight: 800;
}

.club-name-text {
  display: inline;
}

.club-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--club-yellow);
  box-shadow: 0 0 10px rgba(241, 217, 59, 0.4);
}

.club-listing-table tbody tr:nth-child(3n + 2) .club-dot {
  background: var(--club-blue);
  box-shadow: 0 0 10px rgba(38, 144, 201, 0.4);
}

.club-listing-table tbody tr:nth-child(3n + 3) .club-dot {
  background: var(--club-red);
  box-shadow: 0 0 10px rgba(235, 67, 55, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--club-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.required {
  color: var(--club-yellow);
}

.club-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-help,
.submission-notice {
  color: var(--club-soft);
  font-size: 0.88rem;
}

.submission-notice {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(38, 144, 201, 0.85);
  background: rgba(38, 144, 201, 0.1);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(55, 62, 139, 0.95);
  background: var(--club-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-logo img {
  width: auto;
  height: 70px;
}

.footer-title {
  margin: 0 0 0.7rem;
  color: var(--club-yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.footer-nav a,
.footer-link {
  color: var(--club-soft);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-link:hover {
  color: var(--club-yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(55, 62, 139, 0.85);
  color: var(--club-soft);
  font-size: 0.78rem;
}

.footer-dots {
  display: flex;
  gap: 0.35rem;
}

.footer-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.footer-dots span:nth-child(1) { background: var(--club-yellow); }
.footer-dots span:nth-child(2) { background: var(--club-red); }
.footer-dots span:nth-child(3) { background: var(--club-blue); }
.footer-dots span:nth-child(4) { background: var(--club-border); }

.entry-content {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 82px;
  }

  .site-logo img {
    height: 62px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(55, 62, 139, 0.95);
    background: rgba(17, 17, 17, 0.98);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul,
  .nav-fallback {
    display: grid;
    gap: 1rem;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .hero-inner,
  .intro-feature,
  .copy-grid,
  .media-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    gap: 2rem;
  }

  .hero-logo {
    justify-self: start;
    width: clamp(155px, 28vw, 220px);
  }

  .club-heading.hero-title {
    font-size: 5.8rem;
  }

  .club-heading.page-title {
    font-size: 4.4rem;
  }

  .section-title {
    font-size: 3.7rem;
  }

  .fact-grid,
  .timeline-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .club-heading.hero-title {
    font-size: 4.2rem;
  }

  .club-heading.page-title {
    font-size: 3.45rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .club-section {
    padding: 3.5rem 0;
  }

  .fact-grid,
  .timeline-grid,
  .gallery-grid,
  .memorabilia-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-quote blockquote {
    font-size: 3.25rem;
  }

  .table-tools {
    display: grid;
  }

  .table-controls {
    grid-template-columns: 1fr;
    max-width: none;
  }

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

@media (max-width: 503px) {
  .hero-logo {
    display: none;
  }
}
