@import "tailwindcss" source(none);

@source "../../views";
@source "../../components";
@source "../../javascript";
@source not "../builds";

@custom-variant dark (&:is(.dark *));

:root {
  --font-size: 16px;
  --background: #FAFAF9;
  --foreground: #1C1917;
  --card: #FFFFFF;
  --card-foreground: #1C1917;
  --popover: #FFFFFF;
  --popover-foreground: #1C1917;
  --primary: #1C1917;
  --primary-foreground: #FAFAF9;
  --secondary: #F5F5F4;
  --secondary-foreground: #1C1917;
  --muted: #F5F5F4;
  --muted-foreground: #78716C;
  --accent: #F5F5F4;
  --accent-foreground: #1C1917;
  --destructive: #DC2626;
  --destructive-foreground: #ffffff;
  --border: #E7E5E4;
  --input: transparent;
  --input-background: #F5F5F4;
  --switch-background: #A8A29E;
  --ring: #A8A29E;
  --chart-1: #D4A017;
  --chart-2: #22D3EE;
  --chart-3: #A78BFA;
  --chart-4: #FB923C;
  --chart-5: #F472B6;
  --radius: 0.5rem;
  --sidebar: #292524;
  --sidebar-foreground: #E7E5E4;
  --sidebar-primary: #D4A017;
  --sidebar-primary-foreground: #1C1917;
  --sidebar-accent: #44403C;
  --sidebar-accent-foreground: #E7E5E4;
  --sidebar-border: #44403C;
  --sidebar-ring: #78716C;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 2px);
  --radius-xl: calc(var(--radius) + 6px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  /* Gold accent */
  --color-gold: #D4A017;
  --color-gold-50: #FFFBEB;
  --color-gold-100: #FEF3C7;
  --color-gold-200: #FDE68A;
  --color-gold-300: #FCD34D;
  --color-gold-400: #FBBF24;
  --color-gold-500: #D4A017;
  --color-gold-600: #A17D12;
  --color-gold-700: #7C600E;
  --color-gold-dark: #A17D12;

  /* AI accent (cyan) */
  --color-ai: #0891B2;
  --color-ai-50: #ECFEFF;
  --color-ai-100: #CFFAFE;
  --color-ai-200: #A5F3FC;
  --color-ai-300: #67E8F9;
  --color-ai-400: #22D3EE;
  --color-ai-500: #0891B2;
  --color-ai-600: #0E7490;
  --color-ai-700: #155E75;
  --color-ai-light: #22D3EE;
  --color-ai-dark: #0E7490;

  /* Surfaces */
  --color-surface-page: #FAFAF9;
  --color-surface-card: #FFFFFF;
  --color-surface-muted: #F5F5F4;
  --color-surface-border: #E7E5E4;

  /* Content text */
  --color-content-primary: #1C1917;
  --color-content-secondary: #78716C;
  --color-content-muted: #A8A29E;

  /* Semantic */
  --color-success: #16A34A;
  --color-success-bg: #DCFCE7;
  --color-success-text: #166534;
  --color-warning: #D97706;
  --color-warning-bg: #FEF3C7;
  --color-warning-text: #92400E;
  --color-danger: #DC2626;
  --color-danger-bg: #FEE2E2;
  --color-danger-text: #991B1B;

  /* Nav */
  --color-nav: #292524;
  --color-nav-hover: #44403C;
  --color-nav-active: #3D3530;

  /* Chart colors (extended) */
  --color-chart-6: #34D399;
  --color-chart-7: #60A5FA;
  --color-chart-8: #FBBF24;
  --color-chart-9: #E879F9;
  --color-chart-10: #2DD4BF;

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
    font-family: var(--font-sans);
  }

  html {
    font-size: var(--font-size);
  }

  h1 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
  }

  h2 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
  }

  h3 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
  }

  h4 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
  }
}
