/* ═══════════════════════════════════════════════════════════
   events.css  —  Page-specific styles for events.html
   All shared tokens and base styles live in global.css.
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   HERO COMPACT VARIANT
   Matches the pattern established in results.css
───────────────────────────────────────── */
.hero-compact {
  min-height: unset;
}

.hero-content-compact {
  padding: var(--space-4xl) var(--space-lg) var(--space-3xl);
  gap: var(--space-lg);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(189, 212, 240, 0.80);
  max-width: 520px;
  line-height: 1.6;
}

/* Active nav link highlight */
.main-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ─────────────────────────────────────────
   EVENT TYPE CARDS
───────────────────────────────────────── */
.event-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
}

.event-type-card {
  position: relative;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.event-type-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Featured card — relays */
.event-type-card-featured {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  border-color: var(--amber-400);
  border-width: 2px;
  color: var(--white);
}

.event-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber-400);
  color: var(--blue-950);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px var(--space-lg);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.event-type-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-type-icon svg {
  width: 24px;
  height: 24px;
}

/* Featured icon variant */
.event-type-icon-featured {
  background: rgba(251, 191, 36, 0.18);
  color: var(--amber-400);
}

.event-type-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
}

.event-type-card-featured .event-type-title {
  color: var(--white);
}

.event-type-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.event-type-card-featured .event-type-desc {
  color: rgba(189, 212, 240, 0.80);
}

.event-type-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
}

.event-type-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.event-type-card-featured .event-type-list li {
  color: rgba(255, 255, 255, 0.85);
}

.event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-700);
  flex-shrink: 0;
}

.event-type-card-featured .event-dot {
  background: var(--amber-400);
}

/* ─────────────────────────────────────────
   DOCUMENT CARDS
   (Reuses .doc-card pattern from results.css
    — defined here so events.css is standalone)
───────────────────────────────────────── */
.doc-category {
  margin-bottom: var(--space-4xl);
}

.doc-category:last-child {
  margin-bottom: 0;
}

.doc-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid #e5e7eb;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--blue-300);
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon svg {
  width: 22px;
  height: 22px;
}

.doc-text {
  flex: 1;
}

.doc-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: var(--space-xs);
}

.doc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
}

.doc-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.doc-arrow svg {
  width: 16px;
  height: 16px;
}

.doc-card:hover .doc-arrow {
  background: var(--blue-700);
  color: var(--white);
}

/* ─────────────────────────────────────────
   RACE DAY INFO STATS — dark section
───────────────────────────────────────── */
.info-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-4xl);
}

.info-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-xl);
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.info-stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.info-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-stat-icon svg {
  width: 22px;
  height: 22px;
}

.info-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue-300);
}

.info-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

.info-cta-row {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .event-type-grid {
    grid-template-columns: 1fr;
  }

  .event-type-card-featured {
    /* Keep featured card visually distinct on mobile */
    margin-top: var(--space-lg);
  }

  .doc-grid {
    grid-template-columns: 1fr;
  }

  .info-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .info-stat-grid {
    grid-template-columns: 1fr;
  }

  .info-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .info-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}