/* Pet Niche Finder - design tokens.
   The ONLY file with raw colour values. Every other stylesheet uses var(--...).
   Light theme is the default; dark theme = <html data-theme="dark">. */

:root {
  color-scheme: light;

  /* ---- Brand ---- */
  --c-brand: #0F766E;            /* teal: primary actions, active nav */
  --c-brand-hover: #115E59;
  --c-brand-active: #134E4A;
  --c-brand-soft: #E6F4F1;       /* tinted backgrounds */
  --c-brand-soft-2: #CCEBE5;
  --c-brand-text: #0F766E;       /* brand-coloured text on surfaces */
  --c-on-brand: #FFFFFF;         /* text on solid brand */

  --c-accent: #F59E0B;           /* amber accent */
  --c-accent-hover: #D97706;
  --c-accent-soft: #FEF3C7;
  --c-accent-text: #B45309;
  --c-on-accent: #3B2300;

  /* ---- Neutrals ---- */
  --c-bg: #F6F7F9;               /* app background */
  --c-surface: #FFFFFF;          /* cards, sidebar, topbar */
  --c-surface-2: #F9FAFB;        /* table header, subtle panels */
  --c-surface-3: #F2F4F7;        /* hover */
  --c-surface-4: #EAECF0;        /* pressed / selected neutral */
  --c-border: #E4E7EC;
  --c-border-strong: #D0D5DD;
  --c-text: #101828;             /* primary text */
  --c-text-2: #344054;           /* secondary text */
  --c-text-3: #5D6878;           /* muted text (4.9:1 on white) */
  --c-text-4: #667085;           /* placeholders, captions (4.6:1 on white) */
  --c-icon: #667085;

  /* ---- Status ---- */
  --c-success: #12B76A;
  --c-success-text: #067647;
  --c-success-soft: #ECFDF3;
  --c-success-border: #ABEFC6;
  --c-warn: #F79009;
  --c-warn-text: #B54708;
  --c-warn-soft: #FFFAEB;
  --c-warn-border: #FEDF89;
  --c-danger: #D92D20;
  --c-danger-text: #B42318;
  --c-danger-soft: #FEF3F2;
  --c-danger-border: #FECDCA;
  --c-info: #2E90FA;
  --c-info-text: #175CD3;
  --c-info-soft: #EFF8FF;
  --c-info-border: #B2DDFF;

  /* ---- Effects ---- */
  --c-focus: rgba(15, 118, 110, 0.32);
  --c-overlay: rgba(16, 24, 40, 0.48);
  --c-skeleton: #EEF0F3;
  --c-skeleton-shine: #F8F9FB;
  --c-scrollbar: #D0D5DD;
  --c-lock-veil: rgba(255, 255, 255, 0.55);
  --c-white: #FFFFFF;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.10), 0 4px 6px -2px rgba(16, 24, 40, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  --shadow-mark: inset 0 -2px 0 rgba(0, 0, 0, 0.12);   /* bottom edge of the logo tile */
  /* Focus ring: 2px gap in the surface colour + 2px solid brand (>= 3:1 against the background in both themes). */
  --ring: 0 0 0 2px var(--c-surface), 0 0 0 4px var(--c-brand);
  --ring-inset: inset 0 0 0 2px var(--c-brand);

  /* ---- Spacing (4 / 8 px grid) ---- */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ---- Radius ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;

  /* ---- Typography ---- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;               /* base UI size */
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 20px;
  --fs-3xl: 24px;
  --fs-4xl: 30px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.25;
  --lh-normal: 1.5;

  /* ---- Layout ---- */
  --sidebar-w: 248px;
  --topbar-h: 64px;
  --content-max: 1440px;
  --control-h: 36px;
  --control-h-sm: 30px;
  --control-h-lg: 44px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 200ms;

  /* ---- Z-index ---- */
  --z-base: 1;
  --z-sticky: 10;
  --z-topbar: 20;
  --z-sidebar: 30;
  --z-dropdown: 40;
  --z-overlay: 50;
  --z-drawer: 60;
  --z-modal: 70;
  --z-toast: 80;
}

/* ---- Dark theme ---- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --c-brand: #14B8A6;
  --c-brand-hover: #2DD4BF;
  --c-brand-active: #5EEAD4;
  --c-brand-soft: rgba(45, 212, 191, 0.12);
  --c-brand-soft-2: rgba(45, 212, 191, 0.22);
  --c-brand-text: #5EEAD4;
  --c-on-brand: #04201D;

  --c-accent: #FBBF24;
  --c-accent-hover: #FCD34D;
  --c-accent-soft: rgba(251, 191, 36, 0.14);
  --c-accent-text: #FCD34D;
  --c-on-accent: #2A1A00;

  --c-bg: #0B0F14;
  --c-surface: #12171E;
  --c-surface-2: #161C24;
  --c-surface-3: #1C232D;
  --c-surface-4: #242C37;
  --c-border: #242C37;
  --c-border-strong: #334050;
  --c-text: #F2F4F7;
  --c-text-2: #CDD3DC;
  --c-text-3: #98A3B3;
  --c-text-4: #8792A2;
  --c-icon: #98A3B3;

  --c-success: #32D583;
  --c-success-text: #6CE9A6;
  --c-success-soft: rgba(50, 213, 131, 0.12);
  --c-success-border: rgba(50, 213, 131, 0.30);
  --c-warn: #FDB022;
  --c-warn-text: #FEC84B;
  --c-warn-soft: rgba(253, 176, 34, 0.12);
  --c-warn-border: rgba(253, 176, 34, 0.30);
  --c-danger: #F97066;
  --c-danger-text: #FDA29B;
  --c-danger-soft: rgba(249, 112, 102, 0.12);
  --c-danger-border: rgba(249, 112, 102, 0.32);
  --c-info: #53B1FD;
  --c-info-text: #84CAFF;
  --c-info-soft: rgba(83, 177, 253, 0.12);
  --c-info-border: rgba(83, 177, 253, 0.30);

  --c-focus: rgba(45, 212, 191, 0.40);
  --c-overlay: rgba(0, 0, 0, 0.62);
  --c-skeleton: #1A212A;
  --c-skeleton-shine: #232B36;
  --c-scrollbar: #334050;
  --c-lock-veil: rgba(18, 23, 30, 0.55);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.50), 0 2px 4px -2px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 12px 16px -4px rgba(0, 0, 0, 0.55), 0 4px 6px -2px rgba(0, 0, 0, 0.30);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.70);
}
