/* Snaggly Design System - CSS Custom Properties */

:root {
    /* Brand Colors */
    --snaggly-primary: #460698;
    --snaggly-primary-dark: #350572;
    --snaggly-primary-light: #7b3dbd;
    --snaggly-secondary: #764ba2;
    --snaggly-accent: #f093fb;
    
    /* Semantic Colors */
    --snaggly-success: #10b981;
    --snaggly-success-light: #d1fae5;
    --snaggly-warning: #f59e0b;
    --snaggly-warning-light: #fef3c7;
    --snaggly-error: #ef4444;
    --snaggly-error-light: #fee2e2;
    --snaggly-info: #460698;
    --snaggly-info-light: #f3e8ff;
    
    /* Neutral Colors */
    --snaggly-gray-50: #f9fafb;
    --snaggly-gray-100: #f3f4f6;
    --snaggly-gray-200: #e5e7eb;
    --snaggly-gray-300: #d1d5db;
    --snaggly-gray-400: #9ca3af;
    --snaggly-gray-500: #6b7280;
    --snaggly-gray-600: #4b5563;
    --snaggly-gray-700: #374151;
    --snaggly-gray-800: #1f2937;
    --snaggly-gray-900: #111827;
    
    /* Typography */
    --snaggly-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --snaggly-font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    
    /* Spacing Scale */
    --snaggly-space-1: 0.25rem;
    --snaggly-space-2: 0.5rem;
    --snaggly-space-3: 0.75rem;
    --snaggly-space-4: 1rem;
    --snaggly-space-5: 1.25rem;
    --snaggly-space-6: 1.5rem;
    --snaggly-space-8: 2rem;
    --snaggly-space-10: 2.5rem;
    --snaggly-space-12: 3rem;
    --snaggly-space-16: 4rem;
    --snaggly-space-20: 5rem;
    
    /* Border Radius */
    --snaggly-radius-sm: 0;
    --snaggly-radius-md: 0;
    --snaggly-radius-lg: 0;
    --snaggly-radius-xl: 0;
    
    /* Shadows */
    --snaggly-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --snaggly-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --snaggly-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --snaggly-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --snaggly-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/*
 * Note: this deliberately does NOT redefine the gray scale under
 * `prefers-color-scheme: dark`. WordPress admin itself doesn't auto-switch
 * with OS/browser dark mode (its color schemes are an explicit, opt-in user
 * setting), and every component rule below is written against these fixed
 * light-mode values — most set text color (gray-700/800/900) and background
 * color (gray-50/100/200/white) independently of each other, so flipping
 * the scale's meaning for only some of those rules previously produced
 * near-invisible text (light-on-light) wherever the pairing was missed.
 * If dark-mode theming is wanted later, it needs its own token pair (e.g.
 * --snaggly-surface / --snaggly-surface-text) applied consistently to every
 * surface, not a reinterpretation of the existing gray-* scale.
 */
