/*
 * event-detail.css — shared styles for all event detail pages
 * Loaded by: americana, match, league, tournament, oneday, clandestina detail templates
 */

/* ── Brand tokens ──────────────────────────────────────────────────────────── */
:root {
  --event-primary:        #667eea;
  --event-primary-dark:   #764ba2;
  --event-primary-grad:   linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --event-card-radius:    16px;
  --event-badge-radius:   999px;
  --event-hero-overlay:   rgba(0, 0, 0, 0.40);
  --event-transition:     200ms ease;
}

/* ── Unified btn-primary (overrides per-template colour drift) ─────────────── */
.event-page .btn-primary,
.event-page .btn-primary:hover {
  background: var(--event-primary-grad) !important;
  border: none !important;
}

/* ── Unified status badges ─────────────────────────────────────────────────── */
.event-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--event-badge-radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid;
}

.event-status-badge--open {
  background: rgba(16, 185, 129, 0.15);
  color: #065e3a;
  border-color: #10b981;
}

.event-status-badge--closed {
  background: rgba(239, 68, 68, 0.15);
  color: #7f1d1d;
  border-color: #ef4444;
}

.event-status-badge--live {
  background: rgba(59, 130, 246, 0.15);
  color: #1e3a8a;
  border-color: #3b82f6;
}

.event-status-badge--done {
  background: rgba(107, 114, 128, 0.15);
  color: #374151;
  border-color: #6b7280;
}

.event-status-badge--registered {
  background: rgba(16, 185, 129, 0.15);
  color: #065e3a;
  border-color: #10b981;
}

/* ── Body padding for mobile sticky CTAs ──────────────────────────────────── */
@media (max-width: 991.98px) {
  .event-page {
    padding-bottom: 80px;
  }
}

@media (min-width: 992px) {
  .event-page {
    padding-bottom: 0;
  }
}

/* ── Reduced motion: disable all animations for users who prefer it ─────────
   This block must be last so it overrides any animation defined above it.    */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
