@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@plugin "@tailwindcss/typography";

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

@theme inline {
  /* Brand Colors - Obsidian */
  --color-obsidian-50: #F5F5F5;
  --color-obsidian-100: #E5E5E5;
  --color-obsidian-200: #CCCCCC;
  --color-obsidian-300: #999999;
  --color-obsidian-400: #666666;
  --color-obsidian-500: #333333;
  --color-obsidian-600: #1A1A1A;
  --color-obsidian-700: #0D0D0D;
  --color-obsidian-800: #080808;
  --color-obsidian-900: #030303;

  /* Brand Colors - Orange */
  --color-orange-50: #FFF3ED;
  --color-orange-100: #FFE2CC;
  --color-orange-200: #FFC299;
  --color-orange-300: #FF9E5C;
  --color-orange-400: #FF7A2E;
  --color-orange-500: #FF5C00;
  --color-orange-600: #E55200;
  --color-orange-700: #CC4900;
  --color-orange-800: #993700;
  --color-orange-900: #662400;

  /* Brand Colors - Supporting */
  --color-steel: #525252;
  --color-ash: #8A8A8A;
  --color-snow: #F7F7F7;
  --color-smoke: #E5E5E5;
  --color-success: #00A63E;
  --color-error: #E5243B;
  --color-info: #0066FF;

  /* Fonts */
  --font-display: 'Syne', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Consolas', system-ui, sans-serif;
  --font-sans: 'Consolas', system-ui, sans-serif;

  /* Shadows - Soft, layered like Laravel starter kit */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Border Radius - Rounded, modern */
  --radius-badge: 9999px;
  --radius-button: 0.5rem;
  --radius-input: 0.5rem;
  --radius-card: 0.75rem;
  --radius-modal: 0.75rem;
  --font-heading: var(--font-sans);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-foreground: var(--foreground);
  --color-background: var(--background);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 18px;
}

a,
button,
[role="button"],
input[type="submit"],
input[type="reset"],
input[type="button"],
select,
summary {
  cursor: pointer;
}

:root {
  --background: #FFFFFF;
  --foreground: #0D0D0D;
  --card: #FFFFFF;
  --card-foreground: #0D0D0D;
  --popover: #FFFFFF;
  --popover-foreground: #0D0D0D;
  --primary: #FF5C00;
  --primary-foreground: #FFFFFF;
  --secondary: #F7F7F7;
  --secondary-foreground: #0D0D0D;
  --muted: #F7F7F7;
  --muted-foreground: #525252;
  --accent: #0D0D0D;
  --accent-foreground: #FFFFFF;
  --destructive: #E5243B;
  --border: #E5E5E5;
  --input: #E5E5E5;
  --ring: #FF5C00;
  --chart-1: #FF5C00;
  --chart-2: #0D0D0D;
  --chart-3: #00A63E;
  --chart-4: #525252;
  --chart-5: #8A8A8A;
  --radius: 0.625rem;
  --sidebar: #FFFFFF;
  --sidebar-foreground: #0D0D0D;
  --sidebar-primary: #FF5C00;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F7F7F7;
  --sidebar-accent-foreground: #0D0D0D;
  --sidebar-border: #E5E5E5;
  --sidebar-ring: #FF5C00;
}

.dark {
  --background: #0D0D0D;
  --foreground: #F5F5F5;
  --card: #1A1A1A;
  --card-foreground: #F5F5F5;
  --popover: #1A1A1A;
  --popover-foreground: #F5F5F5;
  --primary: #FF7A2E;
  --primary-foreground: #FFFFFF;
  --secondary: #1A1A1A;
  --secondary-foreground: #F5F5F5;
  --muted: #1A1A1A;
  --muted-foreground: #A3A3A3;
  --accent: #FF7A2E;
  --accent-foreground: #FFFFFF;
  --destructive: #E5243B;
  --border: #2E2E2E;
  --input: #2E2E2E;
  --ring: #FF7A2E;
  --chart-1: #FF7A2E;
  --chart-2: #F5F5F5;
  --chart-3: #00A63E;
  --chart-4: #A3A3A3;
  --chart-5: #525252;
  --sidebar: #1A1A1A;
  --sidebar-foreground: #F5F5F5;
  --sidebar-primary: #FF7A2E;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #2E2E2E;
  --sidebar-accent-foreground: #F5F5F5;
  --sidebar-border: #2E2E2E;
  --sidebar-ring: #FF7A2E;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.625rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.25rem;
    --text-6xl: 4rem;
  }
}

/* Tiptap Editor Styles */
.tiptap p.is-editor-empty:first-child::before {
  color: var(--color-muted-foreground);
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
}