/**
 * Design System Variables
 *
 * All design tokens for CloveTheme.
 * These variables control the entire visual system.
 *
 * @package CloveTheme
 * @since 1.0.0
 */

:root {
    /* ==========================================================================
       COLORS
       ========================================================================== */

    /* Brand */
    --color-brand-primary: #6366f1;
    --color-brand-primary-hover: #4f46e5;
    --color-brand-primary-active: #4338ca;
    --color-brand-secondary: #8b5cf6;
    --color-brand-accent: #06b6d4;

    /* Surfaces */
    --color-surface-primary: #ffffff;
    --color-surface-secondary: #f8fafc;
    --color-surface-tertiary: #f1f5f9;
    --color-surface-elevated: #ffffff;
    --color-surface-inverse: #0f172a;
    --color-surface-inverse-secondary: #1e293b;

    /* Text */
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b; /* Darkened from #94a3b8 to meet WCAG AA 4.5:1 contrast */
    --color-text-inverse: #ffffff;
    --color-text-link: var(--color-brand-primary);
    --color-text-link-hover: var(--color-brand-primary-hover);

    /* Borders */
    --color-border-default: #e2e8f0;
    --color-border-subtle: #f1f5f9;
    --color-border-strong: #cbd5e1;

    /* Semantic */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    --gradient-brand-reverse: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-primary) 100%);
    --gradient-surface: linear-gradient(180deg, var(--color-surface-secondary) 0%, var(--color-surface-primary) 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* ==========================================================================
       TYPOGRAPHY
       ========================================================================== */

    /* Font Families */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    --font-mono: ui-monospace, 'SF Mono', Monaco, 'Andale Mono', monospace;

    /* Font Sizes - Fluid with clamp() */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.775rem + 0.1875vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.1875vw, 1rem);
    --text-lg: clamp(1.0625rem, 1rem + 0.3125vw, 1.125rem);
    --text-xl: clamp(1.1875rem, 1.1rem + 0.4375vw, 1.25rem);
    --text-2xl: clamp(1.4375rem, 1.3rem + 0.6875vw, 1.5rem);
    --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 1.875rem);
    --text-4xl: clamp(2.125rem, 1.75rem + 1.875vw, 2.25rem);
    --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 3rem);
    --text-6xl: clamp(3.5rem, 2.5rem + 5vw, 3.75rem);

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

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 2;

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

    /* ==========================================================================
       SPACING
       ========================================================================== */

    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;
    --space-1: 0.25rem;
    --space-1-5: 0.375rem;
    --space-2: 0.5rem;
    --space-2-5: 0.625rem;
    --space-3: 0.75rem;
    --space-3-5: 0.875rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-9: 2.25rem;
    --space-10: 2.5rem;
    --space-11: 2.75rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    --space-36: 9rem;
    --space-40: 10rem;

    /* Section Spacing - Fluid */
    --section-py: clamp(4rem, 3rem + 5vw, 7rem);
    --section-py-lg: clamp(5rem, 4rem + 6vw, 9rem);

    /* ==========================================================================
       LAYOUT
       ========================================================================== */

    --container-sm: 40rem;    /* 640px */
    --container-md: 48rem;    /* 768px */
    --container-lg: 64rem;    /* 1024px */
    --container-xl: 80rem;    /* 1280px */
    --container-2xl: 96rem;   /* 1536px */
    --container-max: 90rem;   /* 1440px - main container */

    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);

    /* ==========================================================================
       EFFECTS
       ========================================================================== */

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 40px -10px var(--color-brand-primary);
    --shadow-glow-lg: 0 0 60px -5px var(--color-brand-primary);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Brand Shadows - Premium purple-tinted shadows for cards */
    --shadow-brand: 0 4px 16px -6px rgba(139, 92, 246, 0.15);
    --shadow-brand-hover: 0 6px 24px -6px rgba(139, 92, 246, 0.2);
    --shadow-brand-lg: 0 8px 32px -8px rgba(139, 92, 246, 0.25);
    --shadow-brand-subtle: 0 2px 8px -3px rgba(139, 92, 246, 0.1);

    /* Transitions */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

    --duration-75: 75ms;
    --duration-100: 100ms;
    --duration-150: 150ms;
    --duration-200: 200ms;
    --duration-300: 300ms;
    --duration-500: 500ms;
    --duration-700: 700ms;
    --duration-1000: 1000ms;

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

    /* Component Z-Indices */
    --z-filter-bar: 100;

    /* ==========================================================================
       COMPONENT-SPECIFIC TOKENS
       ========================================================================== */

    /* Header */
    --header-height: 4.5rem;
    --header-height-scrolled: 4rem;

    /* Buttons */
    --btn-padding-x: var(--space-5);
    --btn-padding-y: var(--space-3);
    --btn-font-size: var(--text-sm);
    --btn-font-weight: var(--weight-semibold);
    --btn-radius: var(--radius-xl);

    /* Cards */
    --card-padding: var(--space-6);
    --card-radius: var(--radius-2xl);
    --card-shadow: var(--shadow-md);
    --card-shadow-hover: var(--shadow-xl);

    /* Forms */
    --input-padding-x: var(--space-4);
    --input-padding-y: var(--space-3);
    --input-radius: var(--radius-lg);
    --input-border: 1px solid var(--color-border-default);
    --input-bg: var(--color-surface-primary);

    /* Glassmorphism */
    --opacity-glass: 0.6;
    --opacity-glass-strong: 0.75;
}

/* ==========================================================================
   LIGHT MODE ONLY
   Dark mode has been disabled. Theme always uses light colors.
   ========================================================================== */
