/* ==========================================================================
   SEO MULTI-PAGE PLATFORM, EVENTBRITE TICKETING & FLYER ARCHIVE STYLES
   Adapts dynamically to V2 (Official Black/Orange), V3 (Luminous White/Cyan) & V1 (Dark Slate)
   ========================================================================== */

body[data-version="v2"] {
  --sp-bg: #09090b;
  --sp-bg-alt: #121215;
  --sp-surface: #18181c;
  --sp-surface-hover: #202026;
  --sp-border: rgba(255, 255, 255, 0.11);
  --sp-text: #f8fafc;
  --sp-text-muted: #a1a1aa;
  --sp-accent: #EF5A00;
  --sp-accent-hover: #ff6a14;
  --sp-accent-2: #00AEEF;
  --sp-input-bg: rgba(255, 255, 255, 0.06);
}

body[data-version="v3"] {
  --sp-bg: #f8fafc;
  --sp-bg-alt: #ffffff;
  --sp-surface: #ffffff;
  --sp-surface-hover: #f1f5f9;
  --sp-border: rgba(15, 23, 42, 0.12);
  --sp-text: #0f172a;
  --sp-text-muted: #475569;
  --sp-accent: #EF5A00;
  --sp-accent-hover: #d94e00;
  --sp-accent-2: #0284c7;
  --sp-input-bg: #f8fafc;
}

body[data-version="v1"] {
  --sp-bg: #090d16;
  --sp-bg-alt: #0f1626;
  --sp-surface: #151f34;
  --sp-surface-hover: #1c2945;
  --sp-border: rgba(255, 255, 255, 0.11);
  --sp-text: #f8fafc;
  --sp-text-muted: #94a3b8;
  --sp-accent: #f59e0b;
  --sp-accent-hover: #fbbf24;
  --sp-accent-2: #38bdf8;
  --sp-input-bg: rgba(255, 255, 255, 0.06);
}

/* Force server-rendered active theme visible without waiting for JS */
.version-view {
  display: block !important;
}

.sp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Global Semantic Header */
.sp-site-header {
  background: var(--sp-bg-alt);
  border-bottom: 1px solid var(--sp-border);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(12px);
}

.sp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sp-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sp-text);
}

.sp-brand-title {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.sp-brand-title .sp-accent {
  color: var(--sp-accent);
}

.sp-brand-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--sp-text-muted);
}

.sp-main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sp-main-nav a {
  color: var(--sp-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sp-main-nav a:hover,
.sp-main-nav a.is-active {
  color: var(--sp-text);
  border-bottom-color: var(--sp-accent);
}

.sp-header-cta {
  background: var(--sp-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 10px;
  white-space: nowrap;
}

.sp-header-cta:hover {
  background: var(--sp-accent-hover);
}

.switcher-admin-link {
  border-color: rgba(239, 90, 0, 0.45) !important;
}

.sp-flash-banner {
  background: rgba(16, 185, 129, 0.15);
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--sp-text);
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Breadcrumbs & Hero Headers */
.sp-page-hero {
  background: var(--sp-bg-alt);
  border-bottom: 1px solid var(--sp-border);
  padding: 46px 0 42px;
}

.sp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--sp-text-muted);
  margin-bottom: 16px;
}

.sp-breadcrumbs a {
  color: var(--sp-accent);
  text-decoration: none;
}

.sp-breadcrumbs a:hover {
  text-decoration: underline;
}

.sp-kicker {
  display: inline-block;
  background: rgba(239, 90, 0, 0.14);
  color: var(--sp-accent);
  border: 1px solid rgba(239, 90, 0, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sp-h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--sp-text);
  margin-bottom: 14px;
}

.sp-lead {
  font-size: 1.06rem;
  color: var(--sp-text-muted);
  max-width: 840px;
  line-height: 1.65;
}

.sp-section {
  padding: 56px 0;
  background: var(--sp-bg);
}

.sp-section-alt {
  padding: 56px 0;
  background: var(--sp-bg-alt);
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
}

.sp-sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.sp-h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.25;
}

/* Buttons */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.sp-btn-primary {
  background: var(--sp-accent);
  color: #ffffff;
}

.sp-btn-primary:hover {
  background: var(--sp-accent-hover);
  transform: translateY(-1px);
}

.sp-btn-outline {
  background: transparent;
  color: var(--sp-text);
  border-color: var(--sp-border);
}

.sp-btn-outline:hover {
  border-color: var(--sp-accent);
  color: var(--sp-accent);
}

/* Filter Bar */
.sp-filter-bar {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 900px) {
  .sp-filter-bar {
    grid-template-columns: 1fr;
  }
}

.sp-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sp-text-muted);
  margin-bottom: 6px;
}

.sp-input,
.sp-select,
.sp-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--sp-border);
  background: var(--sp-input-bg);
  color: var(--sp-text);
  font-size: 0.94rem;
  font-family: inherit;
}

.sp-input:focus,
.sp-select:focus,
.sp-textarea:focus {
  outline: none;
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px rgba(239, 90, 0, 0.2);
}

/* Grids & Cards (Flyers, Agenda, Speakers, Gallery) */
.sp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.sp-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.sp-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 90, 0, 0.5);
}

.sp-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111114;
  overflow: hidden;
}

.sp-card-media.wide {
  aspect-ratio: 16 / 10;
}

.sp-card-media.flyer {
  aspect-ratio: 4 / 5;
  background: #09090b;
}

.sp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-card-media.flyer img {
  object-fit: contain;
}

.sp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 9, 11, 0.86);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.sp-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-card-meta {
  font-size: 0.8rem;
  color: var(--sp-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.sp-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 8px;
}

.sp-card-title a {
  color: var(--sp-text);
  text-decoration: none;
}

.sp-card-title a:hover {
  color: var(--sp-accent);
}

.sp-card-speakers {
  font-size: 0.86rem;
  color: var(--sp-text-muted);
  margin-bottom: 12px;
}

.sp-card-speakers a {
  color: var(--sp-accent-2);
  text-decoration: none;
  font-weight: 600;
}

.sp-card-speakers a:hover {
  text-decoration: underline;
}

.sp-card-desc {
  font-size: 0.89rem;
  color: var(--sp-text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.sp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sp-border);
  font-size: 0.84rem;
}

/* Eventbrite Two-Column Layout */
.sp-eb-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .sp-eb-layout {
    grid-template-columns: 1fr;
  }
}

.sp-sticky-box {
  position: sticky;
  top: 145px;
  background: var(--sp-surface);
  border: 1px solid rgba(239, 90, 0, 0.4);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.sp-ticket-tier {
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-ticket-tier:hover,
.sp-ticket-tier.selected {
  border-color: var(--sp-accent);
  background: rgba(239, 90, 0, 0.07);
}

.sp-seats-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sp-seats-pill.low {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
}

.sp-seats-pill.out {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Info Blocks */
.sp-panel {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}

.sp-panel h2,
.sp-panel h3 {
  color: var(--sp-text);
  margin-bottom: 14px;
}

.sp-checklist {
  list-style: none;
  padding: 0;
}

.sp-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-border);
}

.sp-checklist li:last-child {
  border-bottom: none;
}

.sp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--sp-accent);
  font-weight: 900;
}

/* Album Tabs */
.sp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.sp-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: var(--sp-text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.sp-tab:hover,
.sp-tab.active {
  background: var(--sp-accent);
  border-color: var(--sp-accent);
  color: #ffffff;
}

/* Pagination */
.sp-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sp-pagination nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.sp-pagination a,
.sp-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: var(--sp-text);
}

.sp-pagination a:hover {
  border-color: var(--sp-accent);
}

/* Ticket QR Voucher Card */
.sp-voucher-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  color: #09090b;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #e4e4e7;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.sp-voucher-top {
  background: #09090b;
  color: #ffffff;
  padding: 26px 32px;
  border-bottom: 4px solid #EF5A00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sp-voucher-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  padding: 32px;
  align-items: center;
}

@media (max-width: 720px) {
  .sp-voucher-body {
    grid-template-columns: 1fr;
  }
}

.sp-qr-box {
  text-align: center;
  padding: 20px;
  background: #fafafa;
  border: 2px dashed #d4d4d8;
  border-radius: 16px;
}

/* Global Semantic Footer */
.sp-site-footer {
  background: #070709;
  color: #d4d4d8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 52px 0 28px;
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .sp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .sp-footer-grid {
    grid-template-columns: 1fr;
  }
}

.sp-footer-brand {
  font-weight: 900;
  font-size: 1.08rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.sp-footer-brand span {
  color: #EF5A00;
}

.sp-footer-text {
  font-size: 0.88rem;
  color: #a1a1aa;
  line-height: 1.65;
}

.sp-site-footer h4 {
  color: #ffffff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.sp-footer-links {
  list-style: none;
  padding: 0;
}

.sp-footer-links li {
  margin-bottom: 8px;
}

.sp-footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.88rem;
}

.sp-footer-links a:hover {
  color: #EF5A00;
}

.sp-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #71717a;
}

@media print {
  .version-switcher-bar,
  .sp-site-header,
  .sp-site-footer,
  .no-print {
    display: none !important;
  }
  body {
    padding-top: 0 !important;
    background: #ffffff !important;
  }
}

