/*
 * Design System Theme
 * Generated from: docs/design/theme.json
 * Source: Linear Design System
 */

/* ========================================
   CSS Variables - Light Theme (Default)
   ======================================== */
:root {
  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f7f8f9;
  --color-bg-tertiary: #edeef3;
  --color-bg-elevated: #ffffff;
  --color-bg-surface: #f0f1f4;
  --color-bg-header: rgba(255, 255, 255, 0.8);

  /* Text Colors */
  --color-text-primary: #1d1f24;
  --color-text-secondary: #44494d;
  --color-text-muted: #6b7076;
  --color-text-inverse: #ffffff;

  /* Border Colors */
  --color-border-default: #e0e1e6;
  --color-border-subtle: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.15);

  /* Accent Colors */
  --color-accent: #5e6ad2;
  --color-accent-hover: #525dc9;
  --color-accent-secondary: #475ba1;
  --color-accent-text: #ffffff;

  /* Status Colors */
  --color-status-success: #4cb782;
  --color-status-warning: #e5a910;
  --color-status-error: #d94343;
  --color-status-info: #3b8fd9;

  /* Scrollbar */
  --color-scrollbar: rgba(0, 0, 0, 0.1);
  --color-scrollbar-hover: rgba(0, 0, 0, 0.2);
  --color-scrollbar-active: rgba(0, 0, 0, 0.4);

  /* Brand Colors */
  --color-brand-primary: #5e6ad2;
  --color-brand-blue: #4ea7fc;
  --color-brand-red: #eb5757;
  --color-brand-green: #4cb782;
  --color-brand-orange: #fc7840;
  --color-brand-yellow: #f2c94c;

  /* Typography */
  --font-sans: "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Tiempos Headline", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 510;
  --font-weight-semibold: 590;
  --font-weight-bold: 680;

  --font-size-micro: 0.6875rem;
  --font-size-mini: 0.75rem;
  --font-size-small: 0.8125rem;
  --font-size-regular: 0.9375rem;
  --font-size-large: 1.125rem;

  /* Spacing */
  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-32: 32px;
  --radius-rounded: 9999px;
  --radius-circle: 50%;

  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 20px;
  --gap-6: 24px;
  --gap-8: 32px;
  --gap-10: 40px;
  --gap-12: 48px;
  --gap-16: 64px;

  /* Layout */
  --header-height: 64px;
  --header-blur: 20px;
  --page-padding-inline: 24px;
  --page-padding-block: 64px;
  --page-max-width: 1024px;
  --prose-max-width: 624px;
  --min-tap-size: 44px;

  /* Transitions */
  --transition-fast: 0.1s;
  --transition-normal: 0.25s;
  --transition-slow: 0.4s;

  --easing-default: cubic-bezier(0.215, 0.61, 0.355, 1);
  --easing-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --easing-out: cubic-bezier(0.23, 1, 0.32, 1);
  --easing-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);

  /* Blur */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 16px;
  --blur-xl: 24px;

  /* Z-Index */
  --z-base: 1;
  --z-dropdown: 600;
  --z-sticky: 100;
  --z-modal: 700;
  --z-popover: 600;
  --z-tooltip: 1100;
  --z-toast: 800;
  --z-max: 10000;

  /* Focus Ring */
  --focus-ring-color: #5e6ad2;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

/* ========================================
   CSS Variables - Dark Theme
   ======================================== */
[data-theme="dark"] {
  /* Background Colors */
  --color-bg-primary: #08090a;
  --color-bg-secondary: #0f1011;
  --color-bg-tertiary: #141516;
  --color-bg-elevated: #181a1a;
  --color-bg-surface: #28282c;
  --color-bg-header: rgba(11, 11, 11, 0.8);

  /* Text Colors */
  --color-text-primary: #f7f8f8;
  --color-text-secondary: #8a8f98;
  --color-text-muted: #62666d;
  --color-text-inverse: #08090a;

  /* Border Colors */
  --color-border-default: #28282c;
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.2);

  /* Accent Colors */
  --color-accent-hover: #6872d9;

  /* Status Colors */
  --color-status-warning: #f2c94c;
  --color-status-error: #eb5757;
  --color-status-info: #4ea7fc;

  /* Scrollbar */
  --color-scrollbar: rgba(255, 255, 255, 0.1);
  --color-scrollbar-hover: rgba(255, 255, 255, 0.2);
  --color-scrollbar-active: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Base Styles
   ======================================== */
html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  transition: background-color var(--transition-normal) var(--easing-default),
              color var(--transition-normal) var(--easing-default);
}

/* Focus Ring */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-scrollbar);
  border-radius: var(--radius-rounded);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-scrollbar-hover);
}

::-webkit-scrollbar-thumb:active {
  background: var(--color-scrollbar-active);
}
