/**
 * Design System Variables
 * Velumi brand colors, spacing, typography, and other design tokens
 * Mobile-first responsive design approach
 */

:root {
    /* ===== Brand Colors ===== */
    --color-primary: #ED1E2E;           /* Primary Red - vibrant, energetic */
    --color-secondary: #A9E5BB;         /* Mint Green - calm, friendly */
    --color-accent-1: #FCF6B1;          /* Cream Yellow - warm, inviting */
    --color-accent-2: #F7B32B;          /* Golden Yellow - cheerful, optimistic */
    --color-dark: #2D1E2F;              /* Deep Purple - sophisticated, almost black */

    /* ===== Semantic Colors ===== */
    --color-background: #FFFFFF;        /* White background */
    --color-surface: #F8F9FA;           /* Light gray for cards/surfaces */
    --color-border: #E0E0E0;            /* Light gray for borders */
    --color-text-primary: #2D1E2F;      /* Dark purple for main text */
    --color-text-secondary: #6B7280;    /* Medium gray for secondary text */
    --color-text-on-primary: #FFFFFF;   /* White text on primary color */

    /* ===== State Colors ===== */
    --color-success: #A9E5BB;           /* Mint green for success states */
    --color-error: #ED1E2E;             /* Primary red for errors */
    --color-warning: #F7B32B;           /* Golden yellow for warnings */
    --color-info: #3B82F6;              /* Blue for informational messages */

    /* ===== Interactive States ===== */
    --color-hover: #D11A27;             /* Darker red for hover states */
    --color-active: #B81621;            /* Even darker for active states */
    --color-focus: #ED1E2E;             /* Primary red for focus rings */
    --color-disabled: #D1D5DB;          /* Gray for disabled elements */

    /* ===== Spacing Scale ===== */
    /* Based on 8px baseline grid */
    --spacing-xs: 0.25rem;              /* 4px */
    --spacing-sm: 0.5rem;               /* 8px */
    --spacing-md: 1rem;                 /* 16px */
    --spacing-lg: 1.5rem;               /* 24px */
    --spacing-xl: 2rem;                 /* 32px */
    --spacing-2xl: 3rem;                /* 48px */
    --spacing-3xl: 4rem;                /* 64px */

    /* ===== Typography ===== */
    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-monospace: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Font Sizes - Mobile First */
    --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: 1.875rem;          /* 30px */
    --font-size-4xl: 2.25rem;           /* 36px */

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

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

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

    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);

    /* ===== Focus Ring ===== */
    --focus-ring: 0 0 0 3px rgba(237, 30, 46, 0.2);
    --focus-ring-offset: 2px;

    /* ===== Transitions ===== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;

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

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

    /* ===== Form Elements ===== */
    --input-height: 2.75rem;            /* 44px - mobile-friendly tap target */
    --input-padding-x: var(--spacing-md);
    --input-padding-y: var(--spacing-sm);
    --input-border-width: 1px;
    --input-border-color: var(--color-border);
    --input-border-radius: var(--radius-md);
    --input-focus-border-color: var(--color-focus);

    /* ===== Button Elements ===== */
    --button-height: 2.75rem;           /* 44px - mobile-friendly tap target */
    --button-padding-x: var(--spacing-lg);
    --button-padding-y: var(--spacing-sm);
    --button-border-radius: var(--radius-md);
    --button-font-weight: var(--font-weight-semibold);
}

/* ===== Responsive Typography ===== */
/* Scale up font sizes on larger screens */
@media (min-width: 768px) {
    :root {
        --font-size-3xl: 2rem;          /* 32px */
        --font-size-4xl: 2.5rem;        /* 40px */
    }
}

@media (min-width: 1024px) {
    :root {
        --font-size-3xl: 2.25rem;       /* 36px */
        --font-size-4xl: 3rem;          /* 48px */
    }
}
