/* Street Beat Admin — design tokens & base styles */

:root {
  --font-heading: 'Archivo', Helvetica, Arial, sans-serif;
  --font-body: 'Manrope', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --sidebar-w: 252px;
  --sidebar-w-collapsed: 76px;
  --header-h: 68px;

  --accent: #C67A45;
  --accent-strong: #A8652F;
  --accent-hover: #D08A51;

  --tone-blue: #2F6FED;
  --tone-green: #1F9254;
  --tone-amber: #B9791C;
  --tone-red: #DC3545;
  --tone-purple: #7C5CD4;
  --tone-teal: #0E8E8A;
}

:root[data-theme="light"] {
  --bg: #F4F5F6;
  --bg-sidebar: #FAFAFB;
  --bg-header: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F7F8F9;
  --bg-hover: #EEF0F2;
  --bg-input: #FFFFFF;
  --border: #E1E4E8;
  --border-strong: #D2D6DC;

  --text-primary: #171A1E;
  --text-secondary: #626A73;
  --text-muted: #8A9199;
  --text-on-accent: #FFFFFF;

  --accent-soft-bg: #FBEADD;
  --accent-soft-text: #A8652F;

  --tone-blue-bg: #E7EFFE;
  --tone-green-bg: #E4F5EB;
  --tone-amber-bg: #FBF0DC;
  --tone-red-bg: #FCE9EA;
  --tone-purple-bg: #EEE9FB;
  --tone-teal-bg: #E1F3F2;
  --tone-gray-bg: #EFEEEA;
  --tone-gray-text: #6B6A65;

  --shadow-card: 0 1px 2px rgba(28, 27, 25, 0.04), 0 1px 1px rgba(28, 27, 25, 0.03);
  --shadow-dropdown: 0 12px 32px rgba(28, 27, 25, 0.14), 0 2px 8px rgba(28, 27, 25, 0.08);
  --shadow-drawer: -12px 0 40px rgba(28, 27, 25, 0.12);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D0F12;
  --bg-sidebar: #101318;
  --bg-header: #11151A;
  --bg-card: #171B20;
  --bg-card-alt: #1D2228;
  --bg-hover: #242A31;
  --bg-input: #1D2228;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #F2F3F4;
  --text-secondary: #A4AAB2;
  --text-muted: #747C86;
  --text-on-accent: #FFFFFF;

  --accent-soft-bg: rgba(193, 122, 72, 0.16);
  --accent-soft-text: #E0A06B;

  --tone-blue-bg: rgba(59, 130, 246, 0.16);
  --tone-green-bg: rgba(34, 197, 94, 0.14);
  --tone-amber-bg: rgba(217, 158, 6, 0.16);
  --tone-red-bg: rgba(239, 68, 68, 0.16);
  --tone-purple-bg: rgba(139, 110, 235, 0.18);
  --tone-teal-bg: rgba(20, 184, 166, 0.16);
  --tone-gray-bg: rgba(255, 255, 255, 0.06);
  --tone-gray-text: #9CA1AB;

  --tone-blue: #6FA1F7;
  --tone-green: #4ADE80;
  --tone-amber: #F0B848;
  --tone-red: #F47C7C;
  --tone-purple: #B09CF0;
  --tone-teal: #4FD1C7;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-dropdown: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-drawer: -12px 0 48px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
}

input, select, textarea {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
}

::placeholder { color: var(--text-muted); }

.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
