/* ==========================================================================
 * IMGDumper.nl Canonical Web Design Tokens
 * Derived from: tokens/tokens.json (W3C DTCG Single Source of Truth)
 * Sources:
 *   - Website: website/src/static/css/styles.css:1-94
 *   - Website Design Spec: website/DESIGN.md:1-73
 *   - Cross-Platform Unified Resolutions: docs/03-color-system.md, docs/04-typography.md, docs/05-layout-and-components.md
 * ========================================================================== */

@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit-Variable.ttf') format('truetype-variations'),
         url('../assets/fonts/Outfit-Bold.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Force dark-only browser controls & scrollbars (CONFLICT-03-06 / Dark-Only Policy) */
    color-scheme: dark;

    /* ----------------------------------------------------------------------
     * 1. Core Canvas & Solid Surface Tokens
     * ---------------------------------------------------------------------- */
    --bg-dark: #0a0f18;                     /* color.canvas.deepVoid | styles.css:23 */
    --surface-dark: #101726;                /* color.surface.dark | Android/iOS parity */
    --surface-card: #162032;                /* color.surface.card | Android/iOS parity */
    --surface-card-hover: #1e2b42;          /* color.surface.cardHover | Android/iOS parity */
    --surface-elevated: #1c2940;            /* color.surface.elevated | Tier 2 overlay base */
    --surface-panel: rgba(6, 9, 14, 0.7);   /* color.surface.panel | styles.css:52 (0xB2 = round(0.70*255) vs Compose 0xB3) */
    --email-card: #11161f;                  /* color.surface.emailCard | emails/base.html:121 */
    --email-border: #1f2532;                /* color.surface.emailBorder | emails/base.html:122 */

    /* ----------------------------------------------------------------------
     * 2. Brand, Accent & Ambient Tokens
     * ---------------------------------------------------------------------- */
    --primary: #94CC0B;                     /* color.brand.cyberLime | styles.css:12 */
    --primary-hover: #a5e30c;               /* color.brand.cyberLimeHover | styles.css:14 */
    --primary-dark: #659300;                /* color.brand.cyberLimeDark | progress/selection gradient stop */
    --primary-progress-end: #a3e635;        /* color.brand.cyberLimeProgressEnd | styles.css:15 */
    --accent-yellow: #fcffb4;               /* color.brand.canaryGlow | styles.css:19 */
    --accent-yellow-hover: rgba(252, 255, 180, 0.1); /* styles.css:20 */
    --ambient-sapphire: #2563eb;            /* color.ambient.sapphire | styles.css:75 (decorative only) */
    --sapphire-bg: rgba(37, 99, 235, 0.12); /* styles.css:76 */
    --sapphire-border: rgba(37, 99, 235, 0.3); /* styles.css:77 */
    --badge-private-text: #93c5fd;          /* styles.css:78 (8.11:1 on sapphire-bg) */

    /* ----------------------------------------------------------------------
     * 3. Typography & Semantic Foreground Tokens (WCAG 2.2 AA Audited)
     * ---------------------------------------------------------------------- */
    --text-main: #f3f4f6;                   /* color.text.coolPlatinum | styles.css:59 (17.44:1 on deepVoid) */
    --text-muted: #9ca3af;                  /* color.text.slateAsh | styles.css:60 (7.56:1 on deepVoid) */
    --text-muted-deprecated: #64748b;       /* color.text.muted | iOS textMuted (3.43-4.03:1 AA FAIL - do not use for body text) */
    --text-pure: #ffffff;                   /* color.text.pureWhite | styles.css:17 */
    /* Unified Resolution (CONFLICT-03-01): #0A0F18 (9.96:1) replaces legacy #000000 (styles.css:16) */
    --text-on-primary: #0a0f18;             /* color.text.onPrimary */
    /* Unified Resolution (CONFLICT-03-02): #0A0F18 (5.10:1) on #EF4444 replaces #FFFFFF (3.76:1 AA FAIL) */
    --text-on-destructive: #0a0f18;         /* color.text.onDestructive */
    /* Unified Resolution (CONFLICT-03-05): 50% white (5.06:1 on surfaceCard; 5.25:1 on surfaceDark; 5.32-5.36:1 on deepVoid/dropBg) replaces 30% white (2.62:1 AA FAIL) */
    --placeholder-text: rgba(255, 255, 255, 0.5); /* color.text.placeholder */

    /* ----------------------------------------------------------------------
     * 4. Semantic Status Tokens
     * ---------------------------------------------------------------------- */
    --success: #34d399;                     /* color.semantic.emeraldSuccess | styles.css:64 */
    --success-bg: rgba(52, 211, 153, 0.1);  /* styles.css:65 */
    --warning: #f59e0b;                     /* color.semantic.amberWarning | styles.css:67 */
    --warning-hover: #fbbf24;               /* styles.css:68 */
    --warning-bg: rgba(245, 158, 11, 0.1);  /* styles.css:70 */
    --danger: #ef4444;                      /* color.semantic.crimsonAlert | styles.css:61 (5.10:1 on #0A0F18; 4.34:1 on #162032) */
    --danger-hover: #f87171;                /* color.semantic.crimsonAlertHover | styles.css:62 (5.90:1 on #162032) */
    --danger-fill-accessible: #dc2626;      /* color.semantic.crimsonAlertFillAccessible (4.83:1 with #FFFFFF) */
    --danger-fill-strong: #b91c1c;          /* color.semantic.crimsonAlertFillStrong (6.47:1 with #FFFFFF) */
    --danger-bg: rgba(239, 68, 68, 0.1);    /* styles.css:63 */
    --danger-banner-bg: #1a080a;            /* color.semantic.darkRedBanner (5.15:1 with #EF4444) */

    /* ----------------------------------------------------------------------
     * 5. Glassmorphism, Borders & Tiered Overlays
     * ---------------------------------------------------------------------- */
    --glass-bg: rgba(255, 255, 255, 0.03);          /* styles.css:24 */
    --glass-bg-hover: rgba(255, 255, 255, 0.06);    /* styles.css:25 */
    --glass-border: rgba(255, 255, 255, 0.08);      /* styles.css:26 (decorative hairline only) */
    --glass-border-subtle: rgba(255, 255, 255, 0.12); /* styles.css:28 */
    --glass-border-prominent: rgba(255, 255, 255, 0.18); /* Android/iOS prominent hairline */
    --drop-bg: rgba(0, 0, 0, 0.2);                  /* styles.css:39 */
    --drop-border: rgba(255, 255, 255, 0.2);        /* styles.css:31 */
    --drop-hover-bg: rgba(148, 204, 11, 0.05);      /* styles.css:79 */
    --tier1-glass-panel: rgba(22, 32, 50, 0.85);    /* Mobile Tier 1 equivalent */
    --tier2-overlay: rgba(28, 41, 64, 0.95);        /* Mobile Tier 2 modal/overlay */
    --tier2-interactive: rgba(28, 41, 64, 0.92);    /* Mobile Tier 2 floating bar */
    --dialog-surface: rgba(15, 22, 36, 0.95);       /* color.surface.dialogStart | styles.css:53 */
    --dialog-surface-end: rgba(8, 11, 18, 0.95);    /* color.surface.dialogEnd | styles.css:54 */
    --top-hairline-lime: rgba(148, 204, 11, 0.6);   /* Unified 2px top accent hairline */

    /* ----------------------------------------------------------------------
     * 6. Typography Scale & Tracking
     * ---------------------------------------------------------------------- */
    --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Consolas, Monaco, monospace;
    --tracking-display: -1px;
    --tracking-wordmark: -0.02em; /* Unified proportional tracking (~-0.58px at 28.8px, -0.6px at 30px) */

    /* ----------------------------------------------------------------------
     * 7. Spacing, Radii, Blur, Borders & Layout
     * ---------------------------------------------------------------------- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-grid: 12px;
    --space-md: 16px;
    --space-inset: 20px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-cta-pill: 24px;
    --radius-pill: 9999px;

    --blur-none: 0px;
    --blur-subtle: 8px;
    --blur-standard: 16px;
    --blur-prominent: 24px;
    --blur-heavy: 32px;
    --blur-ambient-orb: 120px;

    --border-hairline: 1px;
    --border-dashed: 2px;
    --border-selected: 2.5px;

    --touch-target-min: 44px;
    --container-max-width: 1400px;
    --upload-box-max-width: 560px; /* Unified from Web 550px and Mobile 560dp/pt */

    /* ----------------------------------------------------------------------
     * 8. Shadows & Motion
     * ---------------------------------------------------------------------- */
    --shadow-glass-ambient: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-neon-resting: 0 0 15px rgba(148, 204, 11, 0.3);
    --shadow-neon-hover: 0 0 25px rgba(148, 204, 11, 0.5);
    --shadow-media-frame: 0 10px 40px rgba(0, 0, 0, 0.5);

    --duration-instant: 150ms;
    --duration-fast: 200ms;
    --duration-normal: 250ms;
    --duration-enter: 300ms;
    --duration-slow: 350ms;
    --duration-orb-float: 10000ms;

    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-emphasized-decelerate: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-dialog-pop: cubic-bezier(0.22, 1, 0.36, 1);
}
