/* ==========================================================================
   Venue page styles — hillclimbevents.co.uk
   Loaded only on /venues/{slug}/ pages generated by tools/generate_venue_pages.py

   Uses the same theme tokens as the rest of the site (see css/darkmode.css):
   --black --white --mid --rule --accent --accent2 --card-bg --pill-bg --panel-bg
   ========================================================================== */

.vp-header-static {
  position: relative;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--rule);
}

.vp-header-static .wordmark {
  color: var(--white) !important;
  text-shadow: none;
}

.vp-header-static .wordmark span {
  color: var(--accent) !important;
  text-shadow: none;
}

.vp-crumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.vp-crumb a {
  color: var(--mid);
  text-decoration: none;
}

.vp-crumb a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Hero image + badges
   -------------------------------------------------------------------------- */

.vp-hero {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}

.vp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.7);
}

.vp-hero-badges {
  position: absolute;
  left: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vp-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(22, 21, 15, 0.55);
  border: 1px solid rgba(242, 239, 230, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(2px);
}

.vp-badge--accent {
  color: var(--accent2);
  border-color: var(--accent2);
}

@media (max-width: 640px) {
  .vp-hero { height: 200px; }
  .vp-hero-badges { left: 16px; bottom: 14px; }
}

/* --------------------------------------------------------------------------
   Main content
   -------------------------------------------------------------------------- */

.vp-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

@media (max-width: 640px) {
  .vp-main { padding: 24px 16px 48px; }
}

/* --------------------------------------------------------------------------
   Intro / title
   -------------------------------------------------------------------------- */

.vp-intro {
  margin-bottom: 28px;
}

.vp-title {
  font-family: 'Archivo', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.1;
}

.vp-subtitle {
  font-size: 0.94rem;
  color: var(--mid);
}

.vp-subtitle a {
  color: var(--mid);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

.vp-subtitle a:hover {
  color: var(--white);
}

@media (max-width: 640px) {
  .vp-title { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Stat cards
   -------------------------------------------------------------------------- */

.vp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.vp-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
}

.vp-stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 6px;
}

.vp-stat-value {
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.vp-stat-value small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
}

.vp-stat-sub {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: 4px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Two-column layout: content + sidebar
   -------------------------------------------------------------------------- */

.vp-columns {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .vp-columns {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Facts list
   -------------------------------------------------------------------------- */

.vp-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vp-facts li {
  font-size: 0.92rem;
  color: var(--white);
  opacity: 0.88;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.vp-facts li::before {
  content: '\2022';
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.vp-section {
  margin-bottom: 36px;
}

.vp-section h2 {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Event list (list view, not a dense table)
   -------------------------------------------------------------------------- */

.vp-event-list {
  display: flex;
  flex-direction: column;
}

.vp-event-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.vp-event-row:last-child {
  border-bottom: none;
}

.vp-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--mid);
  white-space: nowrap;
  width: 118px;
  flex-shrink: 0;
}

.vp-event-body {
  flex: 1;
  min-width: 0;
}

.vp-event-name {
  font-size: 0.92rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.vp-event-name:hover {
  color: var(--accent);
}

.vp-series {
  font-size: 0.76rem;
  color: var(--mid);
  display: block;
  margin-top: 2px;
}

.vp-empty {
  font-size: 0.88rem;
  color: var(--mid);
  padding: 12px 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .vp-date { width: 84px; font-size: 0.7rem; }
}

/* --------------------------------------------------------------------------
   Sidebar cards (visitor info, gallery)
   -------------------------------------------------------------------------- */

.vp-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}

.vp-card-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 14px;
}

.vp-visitor-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}

.vp-visitor-row:last-of-type {
  border-bottom: none;
}

.vp-visitor-label {
  color: var(--mid);
}

.vp-visitor-value {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

.vp-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 14px;
}

.vp-btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.vp-btn--primary:hover {
  filter: brightness(1.08);
}

.vp-btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--rule);
  margin-top: 8px;
}

.vp-btn--secondary:hover {
  border-color: var(--mid);
}

/* --------------------------------------------------------------------------
   Photo gallery card
   -------------------------------------------------------------------------- */

.vp-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vp-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
}

.vp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vp-thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 15, 0.62);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Venues directory (venues/index.html) — reuses .vp-card/.vp-stat-sub
   tokens above rather than introducing a new palette.
   -------------------------------------------------------------------------- */

.vp-index-intro {
  margin-bottom: 28px;
}

.vp-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.vp-index-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s;
}

.vp-index-card:hover {
  border-color: var(--accent2);
}

.vp-index-thumb-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel-bg);
}

.vp-index-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.vp-index-card-body {
  padding: 14px 16px 16px;
}

.vp-index-card-name {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.vp-index-card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}
