/* ==========================================================================
   AnyComic Design Tokens — Flat Dark Gray & Coral System
   ========================================================================== */

:root {
  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography Scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-title: clamp(28px, 2.5vw, 34px);

  /* Canvas & Surfaces (Dark Gray — never pure black) */
  --bg-canvas: #1D1E22;
  --bg-sidebar: #222328;
  --bg-topbar: #202126;
  --bg-surface: #27282E;
  --bg-surface-hover: #2E3038;
  --bg-elevated: #32343D;
  --bg-promo: #292B32;
  --bg-input: #23242A;

  /* Borders */
  --border-subtle: #33353F;
  --border-default: #40424F;
  --border-strong: #535666;

  /* Accent & Semantic Colors (Solid Flat — no gradients, no glow) */
  --accent: #E8545C;
  --accent-hover: #D6454D;
  --accent-active-bg: #3C262A;
  --accent-active-border: #59353C;
  --status-read: #2FB886;
  --status-star: #E5A529;

  /* Text Hierarchy */
  --text-primary: #F3F4F6;
  --text-secondary: #B4B7C2;
  --text-muted: #848896;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  /* Layout Dimensions */
  --sidebar-width: 236px;
  --topbar-height: 60px;
  --container-max: 100%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;

  /* ------------------------------------------------------------------
     Legacy Variable Aliases (harmonizes Admin, Anime, Profile, Reviews)
     ------------------------------------------------------------------ */
  --primary-red: var(--accent);
  --primary-red-dark: var(--accent-hover);
  --primary-red-light: #F06C73;
  --bg-dark: var(--bg-canvas);
  --bg-darker: var(--bg-sidebar);
  --bg-light: var(--bg-elevated);
  --bg-primary: var(--bg-surface);
  --bg-secondary: var(--bg-elevated);
  --border-color: var(--border-default);
  --card-bg: var(--bg-surface);
  --card-hover: var(--bg-surface-hover);
  --hover-transition: var(--transition-base);
  --shadow-sm: none;
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.34);
  --gap-xs: var(--space-1);
  --gap-sm: var(--space-2);
  --gap-md: var(--space-4);
  --gap-lg: var(--space-6);
  --gap-xl: var(--space-8);
}
