/**
 * Little Social - Design System Tokens
 * Supports Dark (default), Light, and OLED themes,
 * instance-scoped account badges, and layout variables.
 */

:root {
  /* Font Family & Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --text-xs: 0.8125rem;  /* 13px */
  --text-sm: 0.9375rem;  /* 15px */
  --text-base: 1.0625rem;/* 17px */
  --text-md: 1.25rem;    /* 20px */
  --text-lg: 1.5rem;     /* 24px */
  --text-xl: 1.875rem;   /* 30px */

  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Fediverse Action Colors */
  --color-reply: #38bdf8;
  --color-reply-bg: rgba(56, 189, 248, 0.12);
  --color-boost: #22c55e;
  --color-boost-bg: rgba(34, 197, 94, 0.12);
  --color-favourite: #eab308;
  --color-favourite-bg: rgba(234, 179, 8, 0.12);
  --color-bookmark: #ec4899;
  --color-bookmark-bg: rgba(236, 72, 153, 0.12);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);

  /* Multi-Account Identity Badges */
  --account-1-color: #06b6d4; /* Alice @ Fosstodon (Teal/Cyan) */
  --account-1-bg: rgba(6, 182, 212, 0.15);
  --account-1-border: rgba(6, 182, 212, 0.35);

  --account-2-color: #8b5cf6; /* Bob @ Mastodon.social (Purple/Violet) */
  --account-2-bg: rgba(139, 92, 246, 0.15);
  --account-2-border: rgba(139, 92, 246, 0.35);

  --account-3-color: #10b981; /* Carol @ Infosec.exchange (Emerald/Mint) */
  --account-3-bg: rgba(16, 185, 129, 0.15);
  --account-3-border: rgba(16, 185, 129, 0.35);

  /* Column Deck Dimensions */
  --deck-column-min-width: 330px;
  --deck-column-default-width: 390px;
  --deck-column-max-width: 480px;
  --single-column-max-width: 640px;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 72px;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-normal: 200ms ease;

  /* Default Theme: Dark (Slate/Zinc with Coral/Tangerine Accent) */
  --surface-bg: #0b0f17;
  --surface-card: #131924;
  --surface-card-hover: #1a2232;
  --surface-column-header: #0e141f;
  --surface-nav: #0b0f17;
  --surface-input: #080b11;
  --surface-active: #1e293b;
  --surface-overlay: #131924;

  --border-color: #243042;
  --border-subtle: #18202d;
  --border-focus: #ff6b4a;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-link: #ff7849;

  --accent-primary: #ff5c35;
  --accent-hover: #e04823;
  --accent-subtle: rgba(255, 92, 53, 0.15);
  --accent-text: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
}

/* Light Theme (Slate with Tangerine/Coral Accent) */
[data-theme="light"] {
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --surface-card-hover: #f1f5f9;
  --surface-column-header: #ffffff;
  --surface-nav: #ffffff;
  --surface-input: #f8fafc;
  --surface-active: #e2e8f0;
  --surface-overlay: #ffffff;

  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --border-focus: #ea580c;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-link: #c2410c;

  --accent-primary: #ea580c;
  --accent-hover: #c2410c;
  --accent-subtle: rgba(234, 88, 12, 0.12);
  --accent-text: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
}

/* OLED Pure-Black Theme (True Black & Deep Zinc with Energetic Coral) */
[data-theme="oled"] {
  --surface-bg: #000000;
  --surface-card: #09090b;
  --surface-card-hover: #141417;
  --surface-column-header: #000000;
  --surface-nav: #000000;
  --surface-input: #000000;
  --surface-active: #18181b;
  --surface-overlay: #09090b;

  --border-color: #27272a;
  --border-subtle: #18181b;
  --border-focus: #ff6b4a;

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-link: #ff7849;

  --accent-primary: #ff5c35;
  --accent-hover: #f04e26;
  --accent-subtle: rgba(255, 92, 53, 0.2);
  --accent-text: #ffffff;

  --shadow-sm: none;
  --shadow-md: 0 0 0 1px #27272a;
  --shadow-lg: 0 0 0 1px #3f3f46, 0 12px 24px rgba(0, 0, 0, 0.8);
}
