/* ==========================================================================
   CSS Custom Properties (Variables)
   All theming variables in one place for easy customization
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     Colors - Primary Palette
     ------------------------------------------------------------------------- */
  --color-primary: #1a1a1a;
  --color-primary-light: #333333;
  --color-primary-dark: #000000;
  --color-primary-rgb: 26, 26, 26;

  /* -------------------------------------------------------------------------
     Colors - Accent
     ------------------------------------------------------------------------- */
  --color-accent: #f97316;
  --color-accent-light: #fb923c;
  --color-accent-secondary: #a855f7;
  --color-accent-secondary-light: #c084fc;

  /* -------------------------------------------------------------------------
     Colors - Neutrals (Light Theme)
     ------------------------------------------------------------------------- */
  --color-bg: #f5f5f0;
  --color-bg-alt: #eeede8;
  --color-bg-elevated: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-border: #e0e0dc;
  --color-border-light: #ebebeb;
  --color-white: #ffffff;

  /* -------------------------------------------------------------------------
     Colors - Semantic
     ------------------------------------------------------------------------- */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* -------------------------------------------------------------------------
     Typography - Font Families
     ------------------------------------------------------------------------- */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: "MalayalamMN", "Malayalam MN", "MalayalamMN-Regular", "Playfair Display", Georgia, serif;
  --font-mono: 'Fira Code', 'SF Mono', Monaco, 'Cascadia Code', monospace;

  /* -------------------------------------------------------------------------
     Typography - Font Sizes
     ------------------------------------------------------------------------- */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3.5rem;    /* 56px */
  --font-size-6xl: 4.5rem;    /* 72px */

  /* -------------------------------------------------------------------------
     Typography - Font Weights
     ------------------------------------------------------------------------- */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* -------------------------------------------------------------------------
     Typography - Line Heights
     ------------------------------------------------------------------------- */
  --line-height-none: 1;
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* -------------------------------------------------------------------------
     Typography - Letter Spacing
     ------------------------------------------------------------------------- */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;

  /* -------------------------------------------------------------------------
     Spacing Scale
     ------------------------------------------------------------------------- */
  --space-0: 0;
  --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 */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Semantic spacing aliases */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  --space-4xl: var(--space-24);

  /* -------------------------------------------------------------------------
     Layout
     ------------------------------------------------------------------------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* -------------------------------------------------------------------------
     Borders
     ------------------------------------------------------------------------- */
  --border-width: 1px;
  --border-width-2: 2px;

  --radius-none: 0;
  --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;

  /* -------------------------------------------------------------------------
     Shadows
     ------------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);

  /* Colored shadows for primary elements */
  --shadow-primary: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
  --shadow-primary-lg: 0 10px 30px rgba(var(--color-primary-rgb), 0.3);

  /* -------------------------------------------------------------------------
     Transitions
     ------------------------------------------------------------------------- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-slower: 700ms ease;

  /* Specific easing functions */
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* -------------------------------------------------------------------------
     Z-Index Scale
     ------------------------------------------------------------------------- */
  --z-below: -1;
  --z-base: 0;
  --z-above: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* -------------------------------------------------------------------------
     Header
     ------------------------------------------------------------------------- */
  --header-height: 4rem;
  --header-height-scrolled: 3.5rem;
}

/* ==========================================================================
   Responsive Variable Adjustments
   ========================================================================== */

/* Tablet and up */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
  }
}
