/* Endless Rally — Base CSS */
/* Warm parchment + blue + yellow. HU community feel meets Dakar energy. */

:root {
  /* Warm parchment base */
  --bg:           #ede7da;
  --bg-card:      #f9f6f0;
  --bg-raised:    #ffffff;
  --bg-hover:     #f2ede1;
  --bg-dark:      #1a1612;
  --bg-dark-card: #2a241c;

  /* Blues (HU-inspired) */
  --blue:         #1a6b8a;
  --blue-dark:    #124d66;
  --blue-light:   #2a8ab0;
  --blue-pale:    #d4eaf2;

  /* Yellows (Dakar energy) */
  --yellow:       #d4a017;
  --yellow-bright:#eab820;
  --yellow-pale:  #f5e6b8;

  /* Rally red */
  --accent:       #c0392b;
  --accent-hover: #d44030;
  --accent-glow:  rgba(192, 57, 43, 0.12);
  --red:          #c0392b;
  --red-dark:     #952d22;

  /* Borders */
  --border:       #d4cab4;
  --border-light: #e2dac8;
  --border-dark:  #3a352c;

  /* Text */
  --text:         #2c2518;
  --text-secondary:#6b5f4e;
  --text-muted:   #9a8e7a;
  --text-light:   #9a8e7a;
  --text-bright:  #1a1612;
  --text-on-dark: #f0e8d8;
  --white:        #ffffff;

  /* Status */
  --green:        #3d8c40;
  --number:       #d4a017;
  --gold:         #b8962a;
  --silver:       #7a7a7a;
  --bronze:       #a06830;

  /* Radius */
  --radius:       6px;
  --radius-lg:    10px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: 0.03em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.125rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--blue-light);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Monospace number display */
.mono {
  font-family: 'Share Tech Mono', monospace;
}

.odometer {
  font-family: 'Share Tech Mono', monospace;
  color: var(--number);
  letter-spacing: 0.08em;
  font-size: 2.5rem;
  line-height: 1;
}

.odometer-lg {
  font-size: 3.75rem;
}

.odometer-sm {
  font-size: 1.25rem;
}

/* Text utilities */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-hot { color: var(--yellow); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-upper {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 24px 0;
}

.divider-accent {
  height: 3px;
  background: var(--blue);
  border: none;
  margin: 24px 0;
  border-radius: 2px;
}

/* Hide/show */
.hidden { display: none !important; }

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.35s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.04s; }
.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.12s; }
.fade-in:nth-child(4) { animation-delay: 0.16s; }
.fade-in:nth-child(5) { animation-delay: 0.20s; }
.fade-in:nth-child(6) { animation-delay: 0.24s; }
.fade-in:nth-child(7) { animation-delay: 0.28s; }
.fade-in:nth-child(8) { animation-delay: 0.32s; }
.fade-in:nth-child(9) { animation-delay: 0.36s; }
.fade-in:nth-child(10) { animation-delay: 0.40s; }

/* Selection */
::selection {
  background: var(--yellow);
  color: var(--text-bright);
}
