/*
Theme Name: Dix
Theme URI: https://dixsupps.com
Author: Dix Supps
Author URI: https://dixsupps.com
Description: Theme natif haute performance pour dixsupps.com - Site e-commerce WooCommerce
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dix
Tags: e-commerce, woocommerce, custom-menu, custom-logo, featured-images

Site e-commerce de supplements sportifs - Theme natif sans Elementor
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Note: Colors and typography are managed dynamically via Dix Core Options
   See includes/core/class-core-options.php -> generate_dynamic_css()

   Only static/layout variables are defined here.
   ========================================================================== */

:root {
    /*
     * FALLBACK VALUES - These are overridden by Dix Core Options dynamic CSS
     * See includes/core/class-core-options.php -> generate_dynamic_css()
     */

    /* Typography - Fallbacks */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;

    /* Colors - Dark Mode Fallbacks (default theme) */
    --color-primary: #1e3a8a;
    --color-primary-hover: #1e40af;
    --color-secondary: #10b981;
    --color-secondary-hover: #059669;
    --color-accent: #f59e0b;
    --color-accent-hover: #d97706;
    --color-text: #f5f5f5;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-inverse: #1a1a1a;
    --color-bg: #0a0a0a;
    --color-bg-secondary: #171717;
    --color-bg-tertiary: #262626;
    --color-bg-dark: #0a0a0a;
    --color-border: #3f3f46;
    --color-border-dark: #52525b;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Shadows - Dark Mode Fallbacks */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);

    /* Spacing Scale */
    --spacing-0: 0;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

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

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;

    /* Layout */
    --container-max: 1280px;
    --container-padding: var(--spacing-4);
    --header-height: 80px;
    --header-height-mobile: 60px;
    --top-bar-height: 40px;

    /* WooCommerce */
    --wc-primary: var(--color-primary);
    --wc-success: var(--color-success);
    --wc-price: var(--color-text);
    --wc-sale-price: var(--color-error);
}

/* Theme selectors for toggle - Fallbacks */
[data-theme="dark"] {
    --color-text: #f5f5f5;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-text-inverse: #1a1a1a;
    --color-bg: #0a0a0a;
    --color-bg-secondary: #171717;
    --color-bg-tertiary: #262626;
    --color-border: #3f3f46;
    --color-border-dark: #52525b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

[data-theme="light"] {
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-text-inverse: #f5f5f5;
    --color-bg: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-border: #e5e7eb;
    --color-border-dark: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ==========================================================================
   DARK/LIGHT MODE
   Note: All theme colors including shadows, borders, and backgrounds
   are now managed dynamically via Dix Core Options.
   See includes/core/class-core-options.php -> generate_dynamic_css()

   The dynamic CSS generates:
   - :root with default theme colors (based on 'default_theme' setting)
   - [data-theme="dark"] with dark mode overrides
   - [data-theme="light"] with light mode overrides
   ========================================================================== */
