/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */

:root {
    /* === Typography === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes (Fluid Typography) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --fs-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --fs-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --fs-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Line Heights */
    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.75;

    /* === Spacing === */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */
    --space-5xl: 8rem;
    /* 128px */

    /* === Layout === */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 5vw, 3rem);
    --header-height: 80px;
    --section-padding: clamp(4rem, 10vh, 8rem);

    /* === Borders === */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* === Shadows === */
    --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);
    --shadow-glow: 0 0 40px;

    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* === Z-Index === */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ========================================
   GitHub Dark Theme (Single Theme)
   ======================================== */
:root {
    /* Background Colors (GitHub Dark) */
    --bg-primary: #0d1117;
    /* Main canvas */
    --bg-secondary: #161b22;
    /* Sidebar/Cards */
    --bg-tertiary: #21262d;
    /* Borders/Inputs */
    --bg-elevated: #30363d;
    /* Dropdowns/Hover */

    /* Surface Colors */
    --surface-glass: rgba(22, 27, 34, 0.8);
    --surface-glass-hover: rgba(48, 54, 61, 0.8);
    --surface-glass-border: #30363d;

    /* Text Colors */
    --text-primary: #c9d1d9;
    /* Main text */
    --text-secondary: #8b949e;
    /* Muted text */
    --text-tertiary: #484f58;
    /* Disabled/Icons */
    --text-inverse: #0d1117;

    /* Accent Colors */
    --accent-primary: #58a6ff;
    /* GitHub Blue */
    --accent-primary-rgb: 88, 166, 255;
    --accent-secondary: #bc8cff;
    /* GitHub Purple */
    --accent-secondary-rgb: 188, 140, 255;
    --accent-tertiary: #238636;
    /* GitHub Green (Buttons) */

    /* Gradient - Subtle GitHub-like glow */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-radial: radial-gradient(circle at center, rgba(88, 166, 255, 0.15) 0%, transparent 70%);

    /* Status Colors */
    --color-success: #2ea043;
    --color-error: #da3633;
    --color-warning: #d29922;
    --color-info: #58a6ff;

    /* Border Colors */
    --border-default: #30363d;
    --border-light: #21262d;
    --border-accent: #58a6ff;

    /* Code Block (IDE Theme) */
    --code-bg: #0d1117;
    --code-border: #30363d;
    --code-keyword: #ff7b72;
    /* Red/Pink */
    --code-string: #a5d6ff;
    /* Light Blue */
    --code-type: #d2a8ff;
    /* Purple */
    --code-method: #79c0ff;
    /* Blue */
    --code-comment: #8b949e;
    /* Gray */
    --code-class: #f0883e;
    /* Orange */

    /* IDE Specific */
    --ide-header-bg: #161b22;
    --ide-tab-active-bg: #0d1117;
    --ide-tab-border: #f9826c;
    /* Orange top border for active tab */
    --ide-line-number: #6e7681;
}