/**
 * Olowo Design System
 * Extracted from test-ui React prototype
 * 
 * This file contains the core design tokens (colors, typography, spacing)
 * that define the Olowo brand identity.
 */

/* ============================================
   FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Source+Code+Pro:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Olowo Brand Colors */
  --olowo-green: #62C20F;
  --olowo-orange: #E8A14D;
  --olowo-cream: #F2F5EF;
  --olowo-red: #FF2A23;
  --olowo-brown: #75461D;
  --olowo-dark-green: #56971B;
  
  /* Semantic Color Mappings */
  --color-primary: var(--olowo-green);
  --color-secondary: var(--olowo-orange);
  --color-accent: var(--olowo-red);
  --color-neutral: var(--olowo-brown);
  --color-background: var(--olowo-cream);
  
  /* Extended Color Palette */
  --color-text-primary: #1C1C1E;
  --color-text-secondary: #6B625C;
  --color-text-muted: #B8B0A7;
  --color-border: #75461D;
  --color-border-light: rgba(117, 70, 29, 0.1);
  
  /* Typography */
  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Source Code Pro', 'Courier New', monospace;
  --font-mono: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Spacing Scale (based on 4px base unit) */
  --spacing-0: 0;
  --spacing-1: 0.25rem;    /* 4px */
  --spacing-2: 0.5rem;     /* 8px */
  --spacing-3: 0.75rem;    /* 12px */
  --spacing-4: 1rem;       /* 16px */
  --spacing-5: 1.25rem;    /* 20px */
  --spacing-6: 1.5rem;     /* 24px */
  --spacing-8: 2rem;       /* 32px */
  --spacing-10: 2.5rem;    /* 40px */
  --spacing-12: 3rem;      /* 48px */
  --spacing-16: 4rem;      /* 64px */
  --spacing-20: 5rem;      /* 80px */
  
  /* Border Radius */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-2xl: 2rem;      /* 32px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Colors */
.text-olowo-green { color: var(--olowo-green); }
.text-olowo-orange { color: var(--olowo-orange); }
.text-olowo-red { color: var(--olowo-red); }
.text-olowo-brown { color: var(--olowo-brown); }

/* Background Colors */
.bg-olowo-green { background-color: var(--olowo-green); }
.bg-olowo-orange { background-color: var(--olowo-orange); }
.bg-olowo-cream { background-color: var(--olowo-cream); }
.bg-olowo-red { background-color: var(--olowo-red); }
.bg-olowo-brown { background-color: var(--olowo-brown); }

/* Border Colors */
.border-olowo-green { border-color: var(--olowo-green); }
.border-olowo-orange { border-color: var(--olowo-orange); }
.border-olowo-brown { border-color: var(--olowo-brown); }

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Buttons */
.btn-primary {
  background-color: var(--olowo-dark-green);
  color: white;
  font-weight: var(--font-semibold);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--olowo-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: white;
  color: var(--olowo-brown);
  font-weight: var(--font-semibold);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f9f9f9;
}

/* Input Fields */
.input-field {
  background-color: #F6EFE6;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-weight: var(--font-medium);
  color: var(--color-text-primary);
  transition: border-color var(--transition-base);
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: rgba(98, 194, 15, 0.4);
}

.input-field::placeholder {
  color: var(--color-text-muted);
}

/* Cards */
.card {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-5);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background-color: rgba(98, 194, 15, 0.1);
  color: var(--olowo-green);
}

.badge-orange {
  background-color: rgba(255, 138, 0, 0.1);
  color: var(--olowo-orange);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 640px) {
  :root {
    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.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;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid var(--olowo-green);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Made with Bob */
