/* ==========================================================================
   RunNear - Modern Dark Glassmorphic Design System (Vanilla CSS)
   ========================================================================== */

:root {
  /* Paleta Base Oscura & Profunda */
  --bg-dark-900: #070a13;
  --bg-dark-800: #0c1220;
  --bg-dark-700: #121a2d;
  --bg-dark-600: #1a253e;
  
  /* Superficies Glassmorphism */
  --glass-surface: rgba(15, 23, 42, 0.75);
  --glass-card: rgba(18, 28, 50, 0.65);
  --glass-card-hover: rgba(26, 40, 70, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(99, 102, 241, 0.4);

  /* Acentos Cromáticos */
  --color-popular: #06b6d4;
  --color-popular-gradient: linear-gradient(135deg, #06b6d4, #6366f1);
  --color-trail: #10b981;
  --color-trail-gradient: linear-gradient(135deg, #10b981, #059669);
  --color-accent: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-warning: #f59e0b;
  --color-danger: #f43f5e;
  
  /* Textos y Contraste */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Sombras y Luces Neón */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --glow-popular: 0 0 16px rgba(6, 182, 212, 0.35);
  --glow-trail: 0 0 16px rgba(16, 185, 129, 0.35);
  --glow-accent: 0 0 20px rgba(99, 102, 241, 0.4);

  /* Dimensiones y Transiciones */
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Bases */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.dark-theme {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark-900);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Utilidades Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
