/**
 * InfoMux Design Tokens
 * Central definition of colors, spacing, typography, and other design values
 */

:root {
    /* === Colors === */

    /* Primary (Amber/Gold) */
    --color-primary: #f5c518;
    --color-primary-dark: #d4a617;
    --color-primary-gradient-start: #1f1f1f;
    --color-primary-gradient-end: #2a2a2a;

    /* Success (Green) */
    --color-success: #22c55e;
    --color-success-dark: #16a34a;

    /* Danger (Red) */
    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;

    /* Info (Blue) */
    --color-info: #3b82f6;
    --color-info-dark: #2563eb;

    /* Warning (Amber) */
    --color-warning: #f59e0b;
    --color-warning-bg: #422006;
    --color-warning-text: #fbbf24;

    /* Neutral/Gray Scale - Dark Theme (Miniflux-inspired) */
    --color-bg-body: #1f1f1f;
    --color-bg-white: #222;
    --color-bg-light: #2a2a2a;
    --color-bg-lighter: #333;
    --color-bg-dark: #1a1a1a;

    --color-text-primary: #f5f5f5;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #888;
    --color-text-light: #666;
    --color-text-lighter: #555;
    --color-text-white: #ffffff;

    --color-border: #2a2a2a;
    --color-border-medium: #3a3a3a;
    --color-border-dark: #4a4a4a;

    /* Status colors - Dark theme variants */
    --color-status-success-bg: #14532d;
    --color-status-success-text: #86efac;
    --color-status-warning-bg: #422006;
    --color-status-warning-text: #fcd34d;
    --color-status-error-bg: #450a0a;
    --color-status-error-text: #fca5a5;
    --color-status-info-bg: #1e3a5f;
    --color-status-info-text: #93c5fd;

    /* Badge colors - Dark theme */
    --color-badge-rss-bg: #1e3a5f;
    --color-badge-rss-text: #93c5fd;
    --color-badge-other-bg: #3b1f4a;
    --color-badge-other-text: #d8b4fe;

    /* Star color */
    --color-star: #f5c518;

    /* === Spacing === */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 30px;
    --spacing-4xl: 60px;

    /* === Typography === */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-mono: 'Courier New', monospace;

    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* === Layout === */
    --container-max-width: 900px;
    --inline-padding: 3px;      /* Consistent horizontal padding for all sections (Miniflux convention) */
    --content-padding: 16px;    /* Internal content spacing - mobile first */

    /* === Touch Targets === */
    --touch-target-min: 44px;   /* iOS/Android minimum touch target */

    /* === Border Radius === */
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;

    /* === Shadows === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* === Transitions === */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* === Z-index === */
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-modal: 2000;
    --z-fab: 1001;
}

/* === Responsive Breakpoints === */
/* Tablet and up */
@media (min-width: 620px) {
    :root {
        --content-padding: 24px;
        --inline-padding: 8px;
    }
}

/* Desktop */
@media (min-width: 850px) {
    :root {
        --content-padding: 30px;
        --inline-padding: 3px;
    }
}
