/* theme.css - Bright, friendly design system for FindBestCRM
 * Light-mode default with dark mode toggle
 * Inspired by Notion light mode + Stripe marketing
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* background surfaces — warm white */
  --color-bg: #fafaf9;
  --color-bg-alt: #f5f5f4;
  --color-bg-card: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-secondary: #f0f0ee;

  /* text — dark navy for readability */
  --color-text: #1a1a2e;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #ffffff;

  /* brand / accent — teal + orange */
  --color-primary: #00d4aa;
  --color-accent: #00d4aa;
  --color-accent-hover: #00b894;
  --color-primary-muted: #5ab8a0;
  --color-cta: #ff6b35;
  --color-cta-hover: #e55a2a;
  --color-star: #ff6b35;

  /* status */
  --color-success: #22c55e;
  --color-success-alt: #10b981;

  /* borders — subtle */
  --color-border: rgba(0,0,0,0.06);
  --color-border-standard: #e5e7eb;
  --color-border-solid: #e5e7eb;
  --color-border-solid-2: #d1d5db;
  --color-border-solid-3: #9ca3af;

  /* overlay */
  --color-overlay: rgba(0,0,0,0.5);

  /* typography */
  --font-heading: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --font-feature: "cv01", "ss03";

  /* spacing - 8px base grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* radius — friendlier, rounder */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* shadows — soft, friendly */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-inset: inset 0 1px 4px rgba(0,0,0,0.06);
  --shadow-dialog: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
}

/* dark mode */
[data-theme="dark"] {
  --color-bg: #0a1628;
  --color-bg-alt: #0e1b30;
  --color-bg-card: rgba(255,255,255,0.03);
  --color-bg-elevated: #132240;
  --color-bg-secondary: #1a2d4a;
  --color-text: #f7f8f8;
  --color-text-secondary: #d0d6e0;
  --color-text-muted: #8a8f98;
  --color-text-faint: #62666d;
  --color-text-inverse: #0a1628;
  --color-accent-hover: #33e0be;
  --color-cta-hover: #ff8555;
  --color-border: rgba(255,255,255,0.05);
  --color-border-standard: rgba(255,255,255,0.08);
  --color-border-solid: #1a2d4a;
  --color-border-solid-2: #243a5c;
  --color-border-solid-3: #2e4770;
  --shadow-md: rgba(0,0,0,0.3) 0px 2px 8px;
  --shadow-lg: rgba(0,0,0,0.4) 0px 4px 16px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.2);
}

/* global type settings */
body {
  font-family: var(--font-body);
  font-feature-settings: var(--font-feature);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-feature-settings: var(--font-feature);
  color: var(--color-text);
  line-height: 1.3;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--color-accent-hover);
}
