/* VivaSport Public Event Hub CSS */
:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #12141c;
  --bg-card: #191c26;
  --border-color: #232735;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --color-primary: #3b82f6;
  --color-teal: #00d1b2;
  --color-lime: #a6ff3b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* Nav Header */
nav {
  height: 70px;
  background-color: rgba(18, 20, 28, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 900;
  font-size: 20px;
}

.logo-link svg {
  width: 32px;
  height: 32px;
}

.logo-sport {
  background: linear-gradient(90deg, #3A7DFF, #00D1B2, #A6FF3B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: white;
}

/* Main Hub Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero-section {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, white, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Event Cards Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.event-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}

.card-img-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
  background-color: var(--bg-card);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--color-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-details {
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.card-details li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-details .material-icons {
  font-size: 16px;
  color: var(--text-muted);
}

/* Event Detail Section */
.event-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 40px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.hero-image-box {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-headline h2 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
}

.event-meta-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-tag {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.meta-tag.charity {
  border-color: var(--color-lime);
  color: var(--color-lime);
  background-color: rgba(166, 255, 59, 0.05);
}

.detail-section {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
}

.detail-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

.detail-section p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

/* Sidebar Widget styling */
.widget-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: white;
  padding: 12px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Apply button styling */
.btn-apply {
  width: 100%;
  height: 52px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

.btn-share {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: white;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
  margin-top: 12px;
}

.btn-share:hover {
  background-color: rgba(255,255,255,0.08);
}

/* Responsive constraints */
@media (max-width: 900px) {
  .event-detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
}

/* Premium Modal Styles */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.premium-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 440px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.premium-modal-overlay.open .premium-modal-box {
  transform: translateY(0);
}

.premium-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.premium-modal-header .icon-success {
  color: var(--color-lime);
  background: rgba(166, 255, 59, 0.1);
  border: 1px solid rgba(166, 255, 59, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-modal-header h4 {
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.premium-modal-body {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.application-badge-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.application-id-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.application-id-value {
  font-family: monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-teal);
}

.premium-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-primary {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-modal-primary:hover {
  opacity: 0.9;
}

.btn-modal-secondary {
  width: 100%;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-modal-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ── Event Hub Sponsorship & Template Extensions ── */

.sponsor-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 5;
}

.sponsor-badge.sponsored {
  background: var(--color-lime);
  color: var(--bg-primary);
  border: 1px solid rgba(166, 255, 59, 0.3);
}

.sponsor-badge.promoted {
  background: linear-gradient(135deg, var(--color-warning), #ef4444);
  color: white;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Event Detail layout themes based on template */
.event-detail-layout.premium-marathon .hero-image-box {
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.event-detail-layout.charity-focus .hero-image-box {
  border-left: 5px solid var(--color-success);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.event-detail-layout.route-sharing .hero-image-box {
  border-left: 5px solid var(--color-teal);
  box-shadow: 0 10px 30px rgba(0, 209, 178, 0.15);
}

/* Grid densities */
.events-grid.compact {
  gap: 16px;
}

.events-grid.compact .event-card {
  border-radius: 12px;
}

.events-grid.compact .card-img-wrapper {
  height: 140px;
}

.events-grid.compact .card-content {
  padding: 16px;
}

.events-grid.compact .card-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.events-grid.sparse {
  gap: 40px;
}

.events-grid.sparse .event-card {
  border-radius: 28px;
}

.events-grid.sparse .card-img-wrapper {
  height: 220px;
}

.events-grid.sparse .card-content {
  padding: 32px;
}

/* Promo Banner Slots */
.promo-banner {
  background: linear-gradient(135deg, rgba(25, 28, 38, 0.9), rgba(18, 20, 28, 0.95));
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
}

.promo-banner.sponsored::before {
  background: var(--color-lime);
}

.promo-banner-badge {
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Charity Spotlight */
.charity-spotlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(10, 11, 13, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  padding: 28px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.charity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-lime);
  font-weight: 800;
  font-size: 16px;
}

/* Sticky Bottom Bar for CTA on mobile */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 20, 28, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
  body {
    padding-bottom: 80px; /* Space for sticky bar */
  }
  .sticky-cta-bar.active {
    display: flex;
  }
}

/* Route Path map details */
.route-map-mock {
  background-color: #151821;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.route-elevation-chart {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-top: 16px;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-left: 8px;
}

.elevation-bar {
  flex: 1;
  background-color: var(--color-teal);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  opacity: 0.6;
}

/* ── Vivaura Footer Styles ── */
.footer-vivaura {
  background-color: #0b1020; /* Deep Navy to match landing page */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 1.5rem;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-link {
  color: rgba(174, 180, 194, 0.6); /* text-silver/60 to match exactly */
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff; /* hover:text-white */
}

.footer-copyright {
  color: rgba(174, 180, 194, 0.4); /* text-silver/40 to match exactly */
  font-size: 12px;
}

