/**
 * SLZH Modern Design System - Vanilla CSS
 * Converted from Tailwind CSS to standard CSS
 * Version: 2026
 */

/* ============================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ============================================ */
:root {
  /* Font Families */
  --font-sans: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', 'Roboto Mono Fallback', ui-monospace, monospace;

  /* SLZH Brand Colors */
  --slzh-navy: #1e2875;
  --slzh-red: #dd4b39;
  --slzh-dark-bg: #0b1020;

  /* Color System (converted from OKLCH to RGB/Hex) */
  --background: #ffffff;
  --foreground: #2a2d52;
  --card: #ffffff;
  --card-foreground: #2a2d52;
  --popover: #ffffff;
  --popover-foreground: #2a2d52;
  --primary: #1e2875;
  --primary-foreground: #fcfcfc;
  --secondary: #f5f5f8;
  --secondary-foreground: #1e2875;
  --muted: #f7f7f9;
  --muted-foreground: #6b6e94;
  --accent: #dd4b39;
  --accent-foreground: #fcfcfc;
  --destructive: #dd4b39;
  --border: #e5e5ea;
  --input: #e5e5ea;
  --ring: #1e2875;

  /* Chart colors */
  --chart-1: #1e2875;
  --chart-2: #dd4b39;
  --chart-3: #5a5d98;
  --chart-4: #9ea1c8;
  --chart-5: #d8d8e2;

  /* Border radius */
  --radius: 0.4rem;
  --radius-sm: 0.24rem;
  --radius-md: 0.32rem;
  --radius-lg: 0.4rem;
  --radius-xl: 0.56rem;
  --radius-2xl: 0.72rem;
  --radius-3xl: 0.88rem;
  --radius-4xl: 1.04rem;

  /* Sidebar colors */
  --sidebar: #f7f7f9;
  --sidebar-foreground: #2a2d52;
  --sidebar-primary: #1e2875;
  --sidebar-primary-foreground: #fcfcfc;
  --sidebar-accent: #f5f5f8;
  --sidebar-accent-foreground: #1e2875;
  --sidebar-border: #e5e5ea;
  --sidebar-ring: #1e2875;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  border-color: var(--border);
  outline-color: rgba(30, 40, 117, 0.5);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */
.hero-section {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 78vh;
  overflow: hidden;
  background-color: var(--slzh-dark-bg);
  color: var(--primary-foreground);
}

.hero-section.hero-live {
  min-height: 80vh;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 86vh;
  }

  .hero-section.hero-live {
    min-height: 88vh;
  }
}

/* Hero Background */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -10;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-gradient-primary {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to top, #0b1020, rgba(11, 16, 32, 0.65), rgba(11, 16, 32, 0.25));
}

.hero-gradient-secondary {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: linear-gradient(to right, rgba(11, 16, 32, 0.9), rgba(11, 16, 32, 0.4), transparent);
}

.hero-accent-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  height: 6px;
  background-color: var(--accent);
}

/* Hero Container */
.hero-container {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1600px;
  padding: 7rem 1rem 3rem;
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 9rem 1rem 4rem;
  }

  .hero-container.hero-live {
    padding-top: 9rem;
  }
}

/* Hero Text Content */
.hero-content {
  max-width: 48rem;
}

.hero-logo-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.125rem;
  background-color: var(--accent);
  padding: 0.375rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-foreground);
}

.hero-live-badge svg {
  width: 1rem;
  height: 1rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
  margin-top: 1.25rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.88;
  text-balance: balance;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }
}

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

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(252, 252, 252, 0.85);
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Hero Meta Info */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(252, 252, 252, 0.85);
}

@media (min-width: 768px) {
  .hero-meta {
    font-size: 1rem;
  }
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero Category Links */
.hero-categories {
  margin-top: 1.75rem;
}

.hero-categories-label {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(252, 252, 252, 0.6);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.hero-category-link {
  display: inline-block;
  border-radius: 0.125rem;
  border: 1px solid rgba(252, 252, 252, 0.25);
  background-color: rgba(252, 252, 252, 0.05);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-foreground);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.hero-category-link:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Hero Card */
.hero-card {
  width: 100%;
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 1px solid rgba(252, 252, 252, 0.15);
  background-color: rgba(11, 16, 32, 0.7);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .hero-card {
    width: 360px;
  }

  .hero-card.hero-card-standard {
    width: 340px;
  }
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-card-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(252, 252, 252, 0.5);
}

.hero-card-live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-card-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  line-height: 1;
}

.hero-card-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
}

.hero-card-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-top: 1px solid rgba(252, 252, 252, 0.1);
}

.hero-card-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 0.125rem;
  background-color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--accent-foreground);
}

.hero-card-athlete {
  min-width: 0;
  flex: 1;
}

.hero-card-athlete-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
}

.hero-card-athlete-category {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(252, 252, 252, 0.5);
}

.hero-card-time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.hero-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(252, 252, 252, 0.75);
}

.hero-card-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card-info-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent);
}

.hero-card-progress {
  margin-top: 1rem;
  height: 0.375rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(252, 252, 252, 0.15);
}

.hero-card-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--accent);
}

/* ============================================
   SCORE TICKER STYLES
   ============================================ */
.score-ticker {
  border-bottom: 1px solid rgba(252, 252, 252, 0.1);
  background-color: var(--slzh-dark-bg);
  color: var(--primary-foreground);
}

.score-ticker-container {
  margin: 0 auto;
  max-width: 1600px;
  display: flex;
  align-items: stretch;
}

.score-ticker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  border-right: 1px solid rgba(252, 252, 252, 0.1);
  background-color: var(--accent);
  padding: 0 1rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-foreground);
}

.score-ticker-scroll {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.score-ticker-scroll::-webkit-scrollbar {
  display: none;
}

.score-ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid rgba(252, 252, 252, 0.1);
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.score-ticker-item:hover {
  background-color: rgba(252, 252, 252, 0.05);
}

.score-ticker-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.score-ticker-item-round {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(252, 252, 252, 0.5);
}

.score-ticker-item-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.score-ticker-status-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
}

.score-ticker-status-dot.finished {
  background-color: var(--muted-foreground);
}

.score-ticker-status-dot.open {
  background-color: var(--accent);
}

.score-ticker-status-dot.live {
  background-color: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.score-ticker-status-text {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-ticker-status-text.finished {
  color: rgba(252, 252, 252, 0.5);
}

.score-ticker-status-text.active {
  color: var(--accent);
}

.score-ticker-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.score-ticker-athlete {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
}

.score-ticker-time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.score-ticker-upcoming {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.score-ticker-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(252, 252, 252, 0.9);
}

.score-ticker-capacity {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: rgba(252, 252, 252, 0.6);
}

.score-ticker-all-link {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  border-left: 1px solid rgba(252, 252, 252, 0.1);
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(252, 252, 252, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.score-ticker-all-link:hover {
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .score-ticker-all-link {
    display: flex;
  }
}

/* ============================================
   SEASON SCHEDULE STYLES
   ============================================ */
.season-schedule {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
}

.season-schedule-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--slzh-dark-bg);
  padding: 1rem;
  color: var(--primary-foreground);
}

@media (min-width: 640px) {
  .season-schedule-header {
    padding: 1rem 1.5rem;
  }
}

.season-schedule-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.season-schedule-subtitle {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(252, 252, 252, 0.6);
}

.season-schedule-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .season-schedule-title {
    font-size: 1.875rem;
  }
}

.season-schedule-year-badge {
  border-radius: 0.125rem;
  background-color: var(--accent);
  padding: 0.125rem 0.5rem;
  color: var(--accent-foreground);
}

.season-schedule-calendar-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(252, 252, 252, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.season-schedule-calendar-link:hover {
  color: var(--accent);
}

/* Schedule Tabs */
.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background-color: rgba(245, 245, 248, 0.5);
  padding: 0.75rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.schedule-tabs::-webkit-scrollbar {
  display: none;
}

.schedule-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 132px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .schedule-tab {
    width: 150px;
  }
}

.schedule-tab:hover {
  border-color: rgba(221, 75, 57, 0.6);
  background-color: var(--card);
}

.schedule-tab.active {
  border-color: var(--accent);
  background-color: var(--card);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  ring: 1px solid var(--accent);
}

.schedule-tab-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-tab-date-badge {
  border-radius: 0.125rem;
  background-color: var(--accent);
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--accent-foreground);
}

.schedule-tab-live {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

.schedule-tab-live-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.schedule-tab-round {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted-foreground);
}

.schedule-tab-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--foreground);
  transition: color 0.2s ease;
}

.schedule-tab.active .schedule-tab-name {
  color: var(--primary);
}

.schedule-tab:hover .schedule-tab-name {
  color: var(--primary);
}

.schedule-tab-region {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

/* Schedule Detail */
.schedule-detail {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .schedule-detail {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .schedule-detail {
    grid-template-columns: 1.4fr 1fr;
  }
}

.schedule-detail-main {
  min-width: 0;
}

.schedule-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.schedule-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.125rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-status-badge.open {
  background-color: #059669;
  color: white;
}

.schedule-status-badge.full,
.schedule-status-badge.live {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.schedule-status-badge.preparing {
  background-color: var(--secondary);
  color: var(--muted-foreground);
}

.schedule-status-badge.finished {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.schedule-status-round {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.schedule-detail-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  line-height: 1.25;
  color: var(--primary);
  text-wrap: pretty;
}

.schedule-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.schedule-info-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.schedule-info-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--accent);
}

.schedule-info-date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.schedule-info-location {
  color: var(--foreground);
}

.schedule-info-region {
  color: var(--muted-foreground);
}

.schedule-info-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.schedule-info-athlete {
  color: var(--muted-foreground);
}

/* Schedule Actions */
.schedule-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background-color: rgba(245, 245, 248, 0.4);
  padding: 1rem;
}

.schedule-capacity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-capacity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.schedule-capacity-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-foreground);
}

.schedule-capacity-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--primary);
}

.schedule-capacity-bar {
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--border);
}

.schedule-capacity-fill {
  height: 100%;
  border-radius: 9999px;
}

.schedule-capacity-fill.live {
  background-color: var(--accent);
}

.schedule-capacity-fill.finished {
  background-color: var(--primary);
}

.schedule-capacity-fill.upcoming {
  background-color: var(--accent);
}

.schedule-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.race-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.125rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.race-card:hover {
  border-color: rgba(30, 40, 117, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.race-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.race-card-round-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.race-card-round {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
}

.race-card-name {
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--primary);
  transition: color 0.2s ease;
}

.race-card:hover .race-card-name {
  color: var(--accent);
}

.race-card-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.race-card-status {
  flex-shrink: 0;
  border-radius: 0.125rem;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.race-card-status.open {
  background-color: #059669;
  color: white;
}

.race-card-status.full,
.race-card-status.live {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.race-card-status.preparing {
  background-color: var(--secondary);
  color: var(--muted-foreground);
}

.race-card-status.finished {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.race-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
}

.race-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.race-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.race-card-location svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.race-card-best-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.race-card-best-time svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.race-card-time-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

.race-card-capacity {
  margin-top: auto;
  padding-top: 0.75rem;
}

.race-card-capacity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
}

.race-card-capacity-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted-foreground);
}

.race-card-capacity-label svg {
  width: 0.875rem;
  height: 0.875rem;
}

.race-card-capacity-percent {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

.race-card-progress {
  height: 0.375rem;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background-color: var(--secondary);
}

.race-card-progress-bar {
  height: 100%;
  border-radius: 9999px;
}

.race-card-progress-bar.full {
  background-color: var(--accent);
}

.race-card-progress-bar.available {
  background-color: var(--primary);
}

.race-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 0.625rem 1rem;
}

.race-card-footer-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.race-card-footer svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.race-card:hover .race-card-footer svg {
  transform: translate(0.125rem, -0.125rem);
}

/* Generic Card */
.card {
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 0 0 1px rgba(42, 45, 82, 0.1);
}

.card-header {
  display: grid;
  grid-auto-rows: min-content;
  align-items: start;
  gap: 0.25rem;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 1rem;
}

.card-title {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 500;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.card-content {
  padding: 0 1rem;
}

.card-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-radius: 0 0 0.75rem 0.75rem;
  background-color: rgba(247, 247, 249, 0.5);
  padding: 1rem;
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background-clip: padding-box;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(30, 40, 117, 0.5);
}

.btn:active:not([aria-haspopup]) {
  transform: translateY(1px);
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn svg {
  pointer-events: none;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

/* Button Variants */
.btn-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-default:hover {
  background-color: rgba(30, 40, 117, 0.8);
}

.btn-outline {
  border-color: var(--border);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: rgba(245, 245, 248, 0.8);
}

.btn-ghost {
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.btn-destructive {
  background-color: rgba(221, 75, 57, 0.1);
  color: var(--destructive);
}

.btn-destructive:hover {
  background-color: rgba(221, 75, 57, 0.2);
}

.btn-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Button Sizes */
.btn-default,
.btn-outline,
.btn-secondary,
.btn-ghost,
.btn-destructive {
  height: 2rem;
  padding: 0 0.625rem;
}

.btn-xs {
  height: 1.5rem;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
}

.btn-xs svg {
  width: 0.75rem;
  height: 0.75rem;
}

.btn-sm {
  height: 1.75rem;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0 0.625rem;
  font-size: 0.8rem;
}

.btn-sm svg {
  width: 0.875rem;
  height: 0.875rem;
}

.btn-lg {
  height: 2.25rem;
  padding: 0 0.625rem;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.btn-icon-xs {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  padding: 0;
}

.btn-icon-xs svg {
  width: 0.75rem;
  height: 0.75rem;
}

.btn-icon-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  padding: 0;
}

.btn-icon-lg {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

/* SLZH Specific Button Styles */
.btn-accent {
  background-color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-foreground);
  box-shadow: 0 10px 15px -3px rgba(221, 75, 57, 0.3);
}

.btn-accent:hover {
  background-color: rgba(221, 75, 57, 0.9);
}

.btn-hero-outline {
  border-color: rgba(252, 252, 252, 0.4);
  background-color: rgba(252, 252, 252, 0.05);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-foreground);
  backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
  background-color: rgba(252, 252, 252, 0.15);
  color: var(--primary-foreground);
}

.btn-youtube {
  background-color: #ff0033;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(255, 0, 51, 0.3);
}

.btn-youtube:hover {
  background-color: rgba(255, 0, 51, 0.9);
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */
@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.18);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Animation Classes */
.hero-zoom {
  animation: hero-zoom 18s ease-out forwards;
}

.hero-rise {
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-zoom,
  .hero-rise,
  .animate-pulse,
  .animate-spin,
  .animate-bounce,
  .animate-ping {
    animation: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.tabular {
  font-variant-numeric: tabular-nums;
}

.scrollbar-none {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1600px;
  }
}

/* ============================================
   UTILITY CLASSES (Tailwind-like)
   ============================================ */

/* Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }

/* Flex Direction */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Justify & Align */
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }

/* Gap */
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }

/* Padding */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-28 { padding-top: 7rem; }
.pt-36 { padding-top: 9rem; }

/* Margin */
.mt-5 { margin-top: 1.25rem; }
.mt-7 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width & Height */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.size-11 { width: 2.75rem; height: 2.75rem; }

/* Min/Max Width & Height */
.min-h-\[80vh\] { min-height: 80vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-\[1600px\] { max-width: 1600px; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }

/* Z-index */
.-z-10 { z-index: -10; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Text */
.text-white { color: white; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.leading-\[0\.88\] { line-height: 0.88; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-wide { letter-spacing: 0.025em; }

/* Background */
.bg-\[#0b1020\] { background-color: #0b1020; }
.bg-\[#dd4b39\] { background-color: #dd4b39; }

/* Border */
.rounded-sm { border-radius: 0.125rem; }
.rounded-md { border-radius: 0.375rem; }

/* Flex Shrink */
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* Isolation */
.isolate { isolation: isolate; }

/* Drop Shadow */
.drop-shadow { filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)); }

/* Responsive */
@media (min-width: 640px) {
  .sm\:flex { display: flex !important; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:justify-between { justify-content: space-between; }
  .lg\:pb-16 { padding-bottom: 4rem; }
  .lg\:pt-36 { padding-top: 9rem; }
  .lg\:min-h-\[88vh\] { min-height: 88vh; }
}

@media (min-width: 768px) {
  .md\.text-7xl { font-size: 4.5rem; line-height: 1; }
}
