/**
 * CLANSAY Design System - CSS Variables (Design Tokens)
 *
 * These are the foundation of the design system.
 * Colors can be customized via WordPress Customizer.
 *
 * @package CLANSAY
 * @since 1.0.0
 */

:root {
    /* ================================================
       COLORS - Background
       ================================================ */
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-dark: #0f172a;

    /* ================================================
       COLORS - Text
       ================================================ */
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: rgba(255, 255, 255, 0.6);
    --text-white: #ffffff;

    /* ================================================
       COLORS - Border (Unified: #cecece)
       ================================================ */
    --border: #cecece;
    --border-light: #cecece;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* ================================================
       COLORS - Accent (Customizable via Customizer)
       These are default Emerald theme values.
       They get overridden by clansay_customizer_css()
       ================================================ */
    --accent-1: #059669;
    --accent-2: #34d399;
    --glow-1: rgba(5, 150, 105, 0.18);
    --glow-2: rgba(52, 211, 153, 0.18);
    --gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);

    /* ================================================
       COLORS - Semantic (Category Colors)
       ================================================ */
    --color-tech: var(--gradient);
    --color-finance: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
    --color-lifestyle: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    --color-productivity: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);

    /* ================================================
       COLORS - Status
       ================================================ */
    --accent-green: #16a34a;
    --accent-teal: #0d9488;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    /* ================================================
       SHADOWS
       ================================================ */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.1);

    /* ================================================
       BORDER RADIUS
       ================================================ */
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 100px;

    /* ================================================
       SPACING (Base unit: 4px)
       ================================================ */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* ================================================
       TYPOGRAPHY
       ================================================ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;
    --font-size-5xl: 36px;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.2;
    --line-height-snug: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.7;

    /* ================================================
       LAYOUT
       ================================================ */
    --container-max: 1280px;
    --container-narrow: 800px;
    --header-height: 70px;

    /* ================================================
       TRANSITIONS
       ================================================ */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ================================================
       Z-INDEX
       ================================================ */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-header: 1000;
    --z-modal: 2000;
    --z-tooltip: 3000;
}
