/* ============================================================
   SHARED DESIGN TOKENS  —  hub-v1 foundation
   ------------------------------------------------------------
   Base layer for every member hub. Theme-neutral.
   Each user overrides the --accent-* contract and --bg-base
   in their own theme.css; component CSS never hardcodes a
   brand color, it only reads these variables.

   Derived from Sami's original homescreen.html :root.
   Do NOT add per-user colors here — put those in <user>/theme.css.
============================================================ */
:root {
    /* ---- Surface ---- */
    --bg-base:        #08080f;
    --bg-card:        #101018;
    --bg-card-hover:  #13131e;
    --bg-glass:       rgba(16, 16, 28, 0.72);
    --bg-inset:       rgba(255, 255, 255, 0.02);

    /* ---- Border ---- */
    --border-subtle:  #1e1e2e;
    --border-muted:   #2a2a3e;
    --border-active:  #3a3a5a;

    /* ---- Accent contract --------------------------------------
       The single accent a theme repaints. Components reference
       ONLY these (never --gold / --violet directly), so a new
       theme = override these four lines.
    ----------------------------------------------------------- */
    --accent:         #d4af37;                      /* primary brand accent     */
    --accent-bright:  #f0c84a;                      /* hover / active highlight  */
    --accent-muted:   #a88a26;                      /* labels, secondary accent  */
    --accent-dim:     #6b5818;                      /* faint accent / gradients  */
    --accent-glow:    rgba(212, 175, 55, 0.18);     /* glows & soft shadows      */
    --accent-contrast:#08080f;                      /* text on a filled accent   */

    /* ---- Secondary data accent (charts, deltas) ---- */
    --data:           #7c6dfa;
    --data-muted:     #5548c4;
    --data-glow:      rgba(124, 109, 250, 0.18);

    /* ---- Semantic ---- */
    --success:        #3ecf8e;
    --danger:         #fa5c5c;
    --warning:        #f59e0b;

    /* ---- Text ---- */
    --text-primary:   #e8e8f0;
    --text-secondary: #9090a8;
    --text-muted:     #52526a;

    /* ---- Spacing scale ---- */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* ---- Radius ---- */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;

    /* ---- Type ---- */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

    /* ---- Motion ---- */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast:     0.18s;
    --t-med:      0.25s;
    --t-slow:     0.42s;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    padding: var(--space-xl) var(--space-xl) 110px;   /* bottom pad clears the dock */
}

/* ---- Global scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-muted); border-radius: 3px; }

a { color: inherit; }
