/**
 * CounterMeasure Appearance Styles
 * @countermeasure-platform/web-components
 *
 * Non-token appearance behavior for the package. Canonical theme colors,
 * accents, typography, layout dimensions, motion, and glass variables live in
 * tokens.css and are intentionally not redefined here.
 */

@import "./tokens.css";

:root {
  --ui-scale-user: 1;
  --ui-scale-auto: 1;
  --ui-scale-effective: 1;

  --setup-bg:
    radial-gradient(1200px 800px at 10% -10%, var(--color-primary-light) 0%, transparent 60%),
    radial-gradient(900px 600px at 90% -20%, var(--color-primary-alpha) 0%, transparent 55%),
    linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
  --setup-card: var(--color-surface);
  --setup-card-border: var(--color-border);
  --setup-card-shadow: var(--shadow-xl);
  --setup-glow: var(--color-primary-alpha);
}

/* ============================================================================
   Typography Overrides
   ============================================================================ */
html[data-font="inter"] {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html[data-font="roboto"] {
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font="system"] {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-font="jetbrains-mono"] {
  --font-sans: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ============================================================================
   Base Appearance Styles
   ============================================================================ */
html {
  font-family: var(--font-sans);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

[data-theme="dark"] body,
.dark body {
  background-image:
    radial-gradient(ellipse at 20% 0%, var(--color-primary-light) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  background-attachment: fixed;
}

[data-theme="monokai"] body,
.monokai body {
  background-image:
    radial-gradient(ellipse at 15% 0%, var(--color-primary-alpha) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
  background-attachment: fixed;
}

[data-theme="glass"] body,
.glass body {
  background-image:
    radial-gradient(ellipse at 20% 0%, var(--color-primary-alpha) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, var(--color-bg-tertiary) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, hsl(var(--background)) 100%);
  background-attachment: fixed;
}
