/**
 * OpenClaw Design System — CSS Custom Properties
 * Extracted from https://github.com/WPOpenClaw/openclaw ui/src/styles/base.css
 *
 * Usage: Enqueue this file before main.css to inherit the OpenClaw
 * design tokens (colors, typography, shadows, radii, transitions).
 * All WPOpenClaw theme styles reference these variables.
 */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Background */
  --bg: #12141a;
  --bg-accent: #14161d;
  --bg-elevated: #1a1d25;
  --bg-hover: #262a35;
  --bg-muted: #262a35;

  /* Card / Surface */
  --card: #181b22;
  --card-foreground: #f4f4f5;
  --card-highlight: rgba(255, 255, 255, 0.05);
  --popover: #181b22;
  --popover-foreground: #f4f4f5;

  /* Panel */
  --panel: #12141a;
  --panel-strong: #1a1d25;
  --panel-hover: #262a35;
  --chrome: rgba(18, 20, 26, 0.95);
  --chrome-strong: rgba(18, 20, 26, 0.98);

  /* Text */
  --text: #e4e4e7;
  --text-strong: #fafafa;
  --chat-text: #e4e4e7;
  --muted: #71717a;
  --muted-strong: #52525b;
  --muted-foreground: #71717a;

  /* Border */
  --border: #27272a;
  --border-strong: #3f3f46;
  --border-hover: #52525b;
  --input: #27272a;
  --ring: #ff5c5c;

  /* Accent — Signature red */
  --accent: #ff5c5c;
  --accent-hover: #ff7070;
  --accent-muted: #ff5c5c;
  --accent-subtle: rgba(255, 92, 92, 0.15);
  --accent-foreground: #fafafa;
  --accent-glow: rgba(255, 92, 92, 0.25);
  --primary: #ff5c5c;
  --primary-foreground: #ffffff;

  /* Secondary — Teal */
  --secondary: #1e2028;
  --secondary-foreground: #f4f4f5;
  --accent-2: #14b8a6;
  --accent-2-muted: rgba(20, 184, 166, 0.7);
  --accent-2-subtle: rgba(20, 184, 166, 0.15);

  /* Semantic */
  --ok: #22c55e;
  --ok-muted: rgba(34, 197, 94, 0.75);
  --ok-subtle: rgba(34, 197, 94, 0.12);
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --warn: #f59e0b;
  --warn-muted: rgba(245, 158, 11, 0.75);
  --warn-subtle: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.75);
  --danger-subtle: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;

  /* Focus */
  --focus: rgba(255, 92, 92, 0.25);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);
  --focus-glow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring), 0 0 20px var(--accent-glow);

  /* Grid */
  --grid-line: rgba(255, 255, 255, 0.04);

  /* Typography */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-glow: 0 0 30px var(--accent-glow);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --radius: 8px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;

  color-scheme: dark;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 92, 92, 0); }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
}
