/**
 * WVTO Design Tokens (CSS Custom Properties)
 * 
 * Central place for all design values used throughout the plugin.
 * Modify these variables to customize the plugin's appearance.
 * 
 * @package Woo_Virtual_Try_On
 * @since 2.0.0
 */

/* ==========================================================================
   Design Tokens - CSS Custom Properties
   ========================================================================== */

:root {
    /* =========================================
       Color Palette
       ========================================= */

    /* Primary Colors */
    --wvto-primary: #6366f1;
    --wvto-primary-hover: #4f46e5;
    --wvto-primary-active: #4338ca;
    --wvto-primary-light: #e0e7ff;

    /* Secondary Colors */
    --wvto-secondary: #64748b;
    --wvto-secondary-hover: #475569;
    --wvto-secondary-active: #334155;

    /* Success / Download */
    --wvto-success: #10b981;
    --wvto-success-hover: #059669;
    --wvto-success-active: #047857;

    /* Danger / Error / Retry */
    --wvto-danger: #ef4444;
    --wvto-danger-hover: #dc2626;
    --wvto-danger-active: #b91c1c;
    --wvto-danger-light: #fef2f2;
    --wvto-danger-border: #fecaca;

    /* WhatsApp */
    --wvto-whatsapp: #25d366;
    --wvto-whatsapp-hover: #128c7e;
    --wvto-whatsapp-active: #075e54;

    /* Neutral Colors */
    --wvto-white: #ffffff;
    --wvto-black: #000000;
    --wvto-gray-50: #f8fafc;
    --wvto-gray-100: #f1f5f9;
    --wvto-gray-200: #e2e8f0;
    --wvto-gray-300: #cbd5e1;
    --wvto-gray-400: #94a3b8;
    --wvto-gray-500: #64748b;
    --wvto-gray-600: #475569;
    --wvto-gray-700: #334155;
    --wvto-gray-800: #1e293b;
    --wvto-gray-900: #0f172a;

    /* Text Colors */
    --wvto-text-primary: var(--wvto-gray-900);
    --wvto-text-secondary: var(--wvto-gray-600);
    --wvto-text-muted: var(--wvto-gray-400);
    --wvto-text-inverse: var(--wvto-white);

    /* Background Colors */
    --wvto-bg-overlay: rgba(0, 0, 0, 0.75);
    --wvto-bg-modal: var(--wvto-white);
    --wvto-bg-camera: var(--wvto-black);

    /* =========================================
       Typography
       ========================================= */

    /* Font Family - Using system fonts for performance */
    --wvto-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Font Sizes */
    --wvto-text-xs: 0.75rem;
    /* 12px */
    --wvto-text-sm: 0.875rem;
    /* 14px */
    --wvto-text-base: 1rem;
    /* 16px */
    --wvto-text-lg: 1.125rem;
    /* 18px */
    --wvto-text-xl: 1.25rem;
    /* 20px */
    --wvto-text-2xl: 1.5rem;
    /* 24px */
    --wvto-text-3xl: 1.875rem;
    /* 30px */

    /* Font Weights */
    --wvto-font-normal: 400;
    --wvto-font-medium: 500;
    --wvto-font-semibold: 600;
    --wvto-font-bold: 700;

    /* Line Heights */
    --wvto-leading-none: 1;
    --wvto-leading-tight: 1.25;
    --wvto-leading-normal: 1.5;
    --wvto-leading-relaxed: 1.625;

    /* =========================================
       Spacing Scale
       ========================================= */

    --wvto-space-0: 0;
    --wvto-space-1: 0.25rem;
    /* 4px */
    --wvto-space-2: 0.5rem;
    /* 8px */
    --wvto-space-3: 0.75rem;
    /* 12px */
    --wvto-space-4: 1rem;
    /* 16px */
    --wvto-space-5: 1.25rem;
    /* 20px */
    --wvto-space-6: 1.5rem;
    /* 24px */
    --wvto-space-8: 2rem;
    /* 32px */
    --wvto-space-10: 2.5rem;
    /* 40px */
    --wvto-space-12: 3rem;
    /* 48px */
    --wvto-space-16: 4rem;
    /* 64px */

    /* =========================================
       Border Radius
       ========================================= */

    --wvto-radius-none: 0;
    --wvto-radius-sm: 0.25rem;
    /* 4px */
    --wvto-radius-md: 0.5rem;
    /* 8px */
    --wvto-radius-lg: 0.75rem;
    /* 12px */
    --wvto-radius-xl: 1rem;
    /* 16px */
    --wvto-radius-2xl: 1.5rem;
    /* 24px */
    --wvto-radius-full: 9999px;
    /* Pill shape */

    /* =========================================
       Shadows
       ========================================= */

    --wvto-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wvto-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --wvto-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --wvto-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --wvto-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Button shadow */
    --wvto-shadow-btn: 0 4px 6px rgba(0, 0, 0, 0.1);
    --wvto-shadow-btn-hover: 0 6px 12px rgba(0, 0, 0, 0.15);

    /* =========================================
       Transitions & Animations
       ========================================= */

    /* Durations */
    --wvto-duration-fast: 150ms;
    --wvto-duration-normal: 300ms;
    --wvto-duration-slow: 500ms;

    /* Easing */
    --wvto-ease-in: cubic-bezier(0.4, 0, 1, 1);
    --wvto-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --wvto-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Combined transitions */
    --wvto-transition-fast: all var(--wvto-duration-fast) var(--wvto-ease-in-out);
    --wvto-transition-normal: all var(--wvto-duration-normal) var(--wvto-ease-in-out);
    --wvto-transition-slow: all var(--wvto-duration-slow) var(--wvto-ease-in-out);

    /* =========================================
       Z-Index Scale
       ========================================= */

    --wvto-z-base: 1;
    --wvto-z-dropdown: 1000;
    --wvto-z-modal: 99999;
    --wvto-z-tooltip: 100000;

    /* =========================================
       Component Sizes
       ========================================= */

    /* Modal */
    --wvto-modal-width: 500px;
    --wvto-modal-max-width: 90vw;
    --wvto-modal-max-height: 90vh;
    --wvto-modal-padding: var(--wvto-space-6);

    /* Buttons */
    --wvto-btn-height-sm: 2rem;
    /* 32px */
    --wvto-btn-height-md: 2.75rem;
    /* 44px */
    --wvto-btn-height-lg: 3.25rem;
    /* 52px */

    --wvto-btn-padding-x-sm: var(--wvto-space-3);
    --wvto-btn-padding-x-md: var(--wvto-space-6);
    --wvto-btn-padding-x-lg: var(--wvto-space-8);

    /* Progress bar */
    --wvto-progress-height: 0.5rem;
    /* 8px */
    --wvto-progress-bg: var(--wvto-gray-200);
    --wvto-progress-fill: var(--wvto-primary);

    /* Spinner */
    --wvto-spinner-size: 3rem;
    /* 48px */
    --wvto-spinner-border-width: 4px;
    --wvto-spinner-color: var(--wvto-primary);

    /* Camera/Video */
    --wvto-camera-max-width: 400px;
}

/* ==========================================================================
   Dark Mode Support (Optional - for future use)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        /* Uncomment and customize for dark mode support
        --wvto-bg-modal: var(--wvto-gray-800);
        --wvto-text-primary: var(--wvto-gray-100);
        --wvto-text-secondary: var(--wvto-gray-300);
        */
    }
}