/**
 * Crypto Premium Design System
 * CSS Custom Properties for consistent spacing and typography
 * 
 * @package Crypto Premium
 * @since 4.2
 */

:root {
    /* ============================================
       SPACING SCALE (8px base unit)
       ============================================ */
    --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 */

    /* ============================================
       FLUID TYPOGRAPHY SCALE
       Uses clamp() for responsive sizing
       Format: clamp(min, preferred, max)
       Note: --text-base matches original theme (16px)
       ============================================ */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    /* 12-14px */
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    /* 14-16px */
    --text-base: 16px;
    /* 16px - matches original theme exactly */
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    /* 18-20px */
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    /* 20-24px */
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    /* 24-32px */
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    /* 30-40px */
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
    /* 36-48px */
    --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4rem);
    /* 48-64px */
    --text-6xl: clamp(3.75rem, 2.75rem + 5vw, 5rem);
    /* 60-80px */

    /* ============================================
       LINE HEIGHTS
       ============================================ */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.6;
    /* matches original theme */
    --leading-relaxed: 1.75;
    --leading-loose: 2;

    /* ============================================
       FONT WEIGHTS
       ============================================ */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* ============================================
       LETTER SPACING
       ============================================ */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    /* 2px */
    --radius-base: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;

    /* ============================================
       Z-INDEX SCALE
       ============================================ */
    --z-behind: -1;
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   UTILITY CLASSES USING CSS VARIABLES
   These supplement existing Bootstrap utilities
   ============================================ */

/* Fluid text sizes */
.text-fluid-xs {
    font-size: var(--text-xs);
}

.text-fluid-sm {
    font-size: var(--text-sm);
}

.text-fluid-base {
    font-size: var(--text-base);
}

.text-fluid-lg {
    font-size: var(--text-lg);
}

.text-fluid-xl {
    font-size: var(--text-xl);
}

.text-fluid-2xl {
    font-size: var(--text-2xl);
}

.text-fluid-3xl {
    font-size: var(--text-3xl);
}

.text-fluid-4xl {
    font-size: var(--text-4xl);
}

.text-fluid-5xl {
    font-size: var(--text-5xl);
}

.text-fluid-6xl {
    font-size: var(--text-6xl);
}

/* Line height utilities */
.leading-none {
    line-height: var(--leading-none);
}

.leading-tight {
    line-height: var(--leading-tight);
}

.leading-snug {
    line-height: var(--leading-snug);
}

.leading-normal {
    line-height: var(--leading-normal);
}

.leading-relaxed {
    line-height: var(--leading-relaxed);
}

.leading-loose {
    line-height: var(--leading-loose);
}

/* Gap utilities using spacing scale */
.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);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-10 {
    gap: var(--space-10);
}

.gap-12 {
    gap: var(--space-12);
}