/* ==========================================================================
   Soft & Structured Modernism Design System
   Approachable • Vibrant • Friendly • Dynamic
   ========================================================================== */

:root {
  /* Soft & Airy Color Palette */
  --color-background: #F9F9FB;
  --color-background-card: #FFFFFF;
  --color-background-secondary: #F3F4F6;
  --color-background-elevated: #FEFEFE;

  /* Professional Text Colors */
  --color-text-primary: #2D3748;
  --color-text-secondary: #4A5568;
  --color-text-tertiary: #718096;
  --color-text-light: #A0AEC0;

  /* Ocean Blue Primary - Professional & Trustworthy */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-primary-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

  /* Complementary Teal - Fresh & Modern */
  --color-teal: #0891B2;
  --color-teal-hover: #0E7490;
  --color-teal-light: #CFFAFE;

  /* Warm Secondary Accents */
  --color-peach: #FED7AA;
  --color-peach-light: #FEF3C7;
  --color-light-blue: #BAE6FD;
  --color-light-blue-light: #E0F2FE;

  /* Additional Vibrant Colors */
  --color-green: #10B981;
  --color-orange: #F59E0B;
  --color-red: #EF4444;
  --color-pink: #EC4899;

  /* Friendly Typography - Modern Sans-Serif */
  --font-family: 'Figtree', 'Satoshi', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* Font Sizes - Clear Hierarchy */
  --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 */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */

  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights - Better Readability */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* Spacing - 4px Grid System */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-32: 8rem;       /* 128px */

  /* Significantly Rounded Corners - Soft & Friendly */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-base: 0.75rem;  /* 12px */
  --radius-md: 1rem;       /* 16px */
  --radius-lg: 1.25rem;    /* 20px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-2xl: 2rem;      /* 32px */
  --radius-3xl: 2.5rem;    /* 40px */
  --radius-full: 9999px;

  /* Soft Shadows - Gentle Lift */
  --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.06);
  --shadow-base: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 20px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 24px 48px -12px rgba(0, 0, 0, 0.18);

  /* Colored Shadows for Buttons */
  --shadow-primary: 0 8px 20px -4px rgba(37, 99, 235, 0.3);
  --shadow-teal: 0 8px 20px -4px rgba(8, 145, 178, 0.3);

  /* Smooth Transitions */
  --timing-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --timing-base: cubic-bezier(0.4, 0, 0.2, 1);
  --timing-slow: cubic-bezier(0.25, 0.1, 0.25, 1);
  --timing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --timing-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --transition-fast: 150ms var(--timing-fast);
  --transition-base: 250ms var(--timing-base);
  --transition-slow: 400ms var(--timing-slow);
  --transition-bounce: 600ms var(--timing-bounce);

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Layout - Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1400px;

  --nav-height: 64px;
  --header-height: 70px;

  /* Grid */
  --grid-gap: var(--space-6);
  --grid-gap-lg: var(--space-8);

  /* Backdrop Blur */
  --blur-sm: 8px;
  --blur-base: 16px;
  --blur-lg: 24px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --gradient-teal: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
  --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-cool: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  --gradient-peach: linear-gradient(135deg, #FDBA74 0%, #FED7AA 100%);
}

/* Base Styles */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  font-weight: var(--font-regular);
}

/* Typography - Friendly & Dynamic */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

/* Gradient Text */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-teal {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection */
::selection {
  background-color: var(--color-primary-light);
  color: var(--color-text-primary);
}

/* Focus Styles - Soft & Visible */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
