/* =====================================================
   BARUCH DESIGN SYSTEM
   Modern, Premium UI Framework
   ===================================================== */

/* =====================================================
   1. DESIGN TOKENS
   ===================================================== */

:root {
  /* Primary Color Palette - Vibrant Purple (#8E24AA) */
  --primary-50: hsl(287, 65%, 95%);
  --primary-100: hsl(287, 65%, 85%);
  --primary-200: hsl(287, 65%, 75%);
  --primary-300: hsl(287, 65%, 65%);
  --primary-400: hsl(287, 65%, 55%);
  --primary-500: hsl(287, 65%, 45%);
  --primary-600: hsl(287, 65%, 40%);
  /* #8E24AA - Base color */
  --primary-700: hsl(287, 65%, 30%);
  --primary-800: hsl(287, 65%, 20%);
  --primary-900: hsl(287, 65%, 10%);

  /* Accent Colors */
  --accent-green: hsl(142, 76%, 45%);
  --accent-green-light: hsl(142, 76%, 95%);
  --accent-orange: hsl(24, 94%, 50%);
  --accent-orange-light: hsl(24, 94%, 95%);
  --accent-purple: hsl(271, 76%, 53%);
  --accent-purple-light: hsl(271, 76%, 95%);
  --accent-teal: hsl(180, 77%, 47%);
  --accent-pink: hsl(330, 81%, 60%);

  /* Neutral Colors */
  --neutral-0: hsl(0, 0%, 100%);
  --neutral-50: hsl(220, 20%, 97%);
  --neutral-100: hsl(220, 16%, 92%);
  --neutral-200: hsl(220, 14%, 85%);
  --neutral-300: hsl(220, 12%, 70%);
  --neutral-400: hsl(220, 10%, 55%);
  --neutral-500: hsl(220, 9%, 46%);
  --neutral-600: hsl(220, 12%, 35%);
  --neutral-700: hsl(220, 16%, 25%);
  --neutral-800: hsl(220, 25%, 15%);
  --neutral-900: hsl(220, 30%, 8%);

  /* Semantic Colors */
  --success: hsl(142, 76%, 45%);
  --success-light: hsl(142, 76%, 95%);
  --success-dark: hsl(142, 76%, 35%);

  --warning: hsl(38, 92%, 50%);
  --warning-light: hsl(38, 92%, 95%);
  --warning-dark: hsl(38, 92%, 40%);

  --error: hsl(0, 84%, 60%);
  --error-light: hsl(0, 84%, 95%);
  --error-dark: hsl(0, 84%, 50%);

  --info: hsl(199, 89%, 48%);
  --info-light: hsl(199, 89%, 95%);
  --info-dark: hsl(199, 89%, 38%);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
  --gradient-success: linear-gradient(135deg, var(--accent-green) 0%, hsl(142, 76%, 35%) 100%);
  --gradient-sunset: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-pink) 100%);
  --gradient-ocean: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-teal) 100%);
  --gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-600) 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(142, 36, 170, 0.4);

  /* Blur Effects */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);

  /* Spacing Scale */
  --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-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', Consolas, Monaco, monospace;

  --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 */

  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --line-tight: 1.25;
  --line-normal: 1.5;
  --line-relaxed: 1.75;

  /* Layout */
  --navbar-height: 64px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --container-max: 1440px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-overlay: 1200;
  --z-modal: 1300;
  --z-toast: 1400;
  --z-tooltip: 1500;
}

/* Dark Mode Support (future) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Will be implemented later */
  }
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--neutral-800);
  background: var(--neutral-50);
  overflow-x: hidden;
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: var(--line-tight);
  color: var(--neutral-900);
}

h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-600);
}

strong {
  font-weight: var(--font-semibold);
}

small {
  font-size: var(--text-sm);
}

/* =====================================================
   4. UTILITY CLASSES
   ===================================================== */

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

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* Flex Utilities */
.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Text Alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Text Colors */
.text-primary {
  color: var(--primary-500);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

.text-muted {
  color: var(--neutral-500);
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-500);
}

.bg-white {
  background-color: var(--neutral-0);
}

.bg-gray {
  background-color: var(--neutral-100);
}

/* Spacing - Margin */
.m-0 {
  margin: 0;
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

/* Spacing - Padding */
.p-0 {
  padding: 0;
}

.p-2 {
  padding: var(--space-2);
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

/* Border Radius */
.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* Shadow */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Width */
.w-full {
  width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* =====================================================
   5. RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Mobile First Approach */

/* Tablet: 768px and up */
@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }
}

/* Desktop: 1024px and up */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
  .xl\:hidden {
    display: none;
  }

  .xl\:block {
    display: block;
  }
}