/**
 * POF Theme Base - Universal Non-Color Variables
 * Version: 2.0 (Complete Refactor)
 * 
 * This file defines ALL non-color variables that remain constant across themes.
 * These variables are the foundation for both light and dark themes.
 * 
 * PHILOSOPHY: DRY, KISS, SRP
 * - Single source of truth for non-color values
 * - No duplication across files
 * - Clear separation: base = structure, themes = colors
 */

:root {
    /* ========================================
       TYPOGRAPHY SCALE
       ======================================== */
    
    /* Font Families */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-primary: var(--font-family-base);
    --font-family-heading: var(--font-family-base);
    --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    
    /* Font Sizes - Consistent scale */
    --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-size-5xl: 3rem;          /* 48px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.4;
    --line-height-normal: 1.5;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.75;
    --line-height-loose: 1.8;
    
    /* ========================================
       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 */
    
    /* Legacy aliases for backward compatibility */
    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-4);
    --spacing-lg: var(--space-6);
    --spacing-xl: var(--space-8);
    --spacing-2xl: var(--space-12);
    
    /* Admin spacing aliases */
    --admin-spacing-xs: var(--space-1);
    --admin-spacing-sm: var(--space-2);
    --admin-spacing-md: var(--space-4);
    --admin-spacing-lg: var(--space-6);
    --admin-spacing-xl: var(--space-8);
    
    /* ========================================
       BORDERS & RADIUS
       ======================================== */
    
    /* Border Widths */
    --border-width-thin: 1px;
    --border-width-medium: 2px;
    --border-width-thick: 3px;
    
    /* Border Radius - Consistent scale */
    --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;          /* Fully rounded */
    
    /* Legacy aliases */
    --border-radius-sm: var(--radius-sm);
    --border-radius-md: var(--radius-md);
    --border-radius-lg: var(--radius-lg);
    --border-radius-xl: var(--radius-xl);
    
    /* ========================================
       TRANSITIONS & ANIMATIONS
       ======================================== */
    
    /* Duration */
    --transition-fast: 150ms;
    --transition-base: 200ms;
    --transition-slow: 300ms;
    
    /* Easing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    
    /* Combined (convenience) */
    --transition-all: all var(--transition-base) var(--ease-in-out);
    
    /* ========================================
       Z-INDEX SCALE
       ======================================== */
    
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    
    /* ========================================
       COMPONENT-SPECIFIC DIMENSIONS
       ======================================== */
    
    /* Buttons */
    --btn-padding-x: 1rem;
    --btn-padding-y: 0.5rem;
    --btn-padding-sm-x: 0.75rem;
    --btn-padding-sm-y: 0.375rem;
    --btn-padding-lg-x: 1.5rem;
    --btn-padding-lg-y: 0.75rem;
    --btn-font-size: var(--font-size-sm);
    --btn-border-radius: var(--radius-md);
    
    /* Input Fields */
    --input-padding-x: 0.75rem;
    --input-padding-y: 0.5rem;
    --input-border-width: 1px;
    --input-border-radius: var(--radius-md);
    --input-focus-ring-width: 3px;
    
    /* Cards */
    --card-padding: 1.5rem;
    --card-padding-sm: 1rem;
    --card-padding-lg: 2rem;
    --card-border-radius: var(--radius-lg);
    --card-border-width: 1px;
    
    /* ========================================
       LAYOUT & CONTAINER SIZES
       ======================================== */
    
    /* Container Max Widths (Responsive) */
    --container-xs: 20rem;          /* 320px */
    --container-sm: 24rem;          /* 384px */
    --container-md: 28rem;          /* 448px */
    --container-lg: 32rem;          /* 512px */
    --container-xl: 36rem;          /* 576px */
    --container-2xl: 42rem;         /* 672px */
    --container-3xl: 48rem;         /* 768px */
    --container-4xl: 56rem;         /* 896px */
    --container-5xl: 64rem;         /* 1024px */
    --container-6xl: 72rem;         /* 1152px */
    --container-7xl: 80rem;         /* 1280px */
    
    /* Breakpoints (for reference in media queries) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ========================================
       OPACITY SCALE
       ======================================== */
    
    --opacity-0: 0;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;
    
    /* ========================================
       MEDICAL/CLINICAL DIMENSIONS
       ======================================== */
    
    /* Badge sizes */
    --badge-padding-x: 0.5rem;
    --badge-padding-y: 0.25rem;
    --badge-font-size: var(--font-size-xs);
    --badge-border-radius: var(--radius-full);
    
    /* Priority indicators */
    --priority-indicator-size: 8px;
    
    /* ========================================
       ACCESSIBILITY
       ======================================== */
    
    /* Focus ring offset */
    --focus-ring-offset: 2px;
    --focus-ring-width: 2px;
    
    /* Minimum touch target (WCAG 2.1) */
    --min-touch-target: 44px;
    
    /* ========================================
       PERFORMANCE
       ======================================== */
    
    /* GPU acceleration hint */
    --transform-gpu: translateZ(0);
    
    /* ========================================
       SYSTEM FLAGS
       ======================================== */
    
    /* Mark this file as loaded (for debugging) */
    --theme-base-loaded: true;
}

/* ========================================
   RESPONSIVE BREAKPOINT ADJUSTMENTS
   ======================================== */

/* Small screens - adjust spacing */
@media (max-width: 640px) {
    :root {
        --container-max-width: 100%;
        --card-padding: 1rem;
        --btn-padding-x: 0.75rem;
    }
}

/* Medium screens */
@media (min-width: 640px) {
    :root {
        --container-max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    :root {
        --container-max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    :root {
        --container-max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    :root {
        --container-max-width: var(--container-xl);
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    :root {
        /* Simplify for print */
        --shadow-sm: none;
        --shadow-md: none;
        --shadow-lg: none;
        --shadow-xl: none;
    }
}

























