/* Mentorship homepage design tokens (VETI-4375, subtasks VETI-4376/4377/4378).
   Mirrors the education-tokens.css / course-workspace-reskin convention (see
   docs/superpowers/specs/2026-08-18-course-workspace-visual-reskin-design.md): a --tl-*
   prefixed token block scoped under this page's existing wrapper (MentorshipHome.razor's
   .mentorship-home div), plus a Fluent-token remap so AppCard/FluentButton/FluentBadge repaint
   without any markup changes.

   Dark theming (VETI-4379, subtasks VETI-4380/VETI-4381) is now wired in below via a
   .mentorship-home.theme-dark block, applied by MentorshipHome.razor alongside the base class
   when ThemeStateService.Mode is Dark — same live-toggle bridge CourseWorkspace.razor already
   uses for .education-workspace.theme-dark. Values below are copied verbatim from that file's
   light-mode block (same brand/status/spacing/radius tokens), plus --tl-link from the design
   mock's own --link token. */
.mentorship-home {
  /* Brand */
  --tl-navy: #0B1F3A;
  --tl-gold: #F4A623;
  --tl-blue: #2D6CDF;

  /* Light semantic tokens */
  --tl-bg:          #F0F2F5;
  --tl-surface:     #FFFFFF;
  --tl-surface-alt: #F8F7F4;
  --tl-border:      #E2E6EB;
  --tl-text:        #0B1F3A;
  --tl-text-2:      #555555;
  --tl-text-muted:  #8A8A8A;
  --tl-accent:      var(--tl-gold);
  --tl-link:        #2D6CDF;

  /* Status tokens — light-mode fg/bg pairs, copied from education-tokens.css. Full set (not
     just brand/spacing/radius) is required here: Phase2PlaceholderSection.razor.css already
     references var(--tl-warning-fg)/var(--tl-warning-bg) for its badge, which previously only
     resolved under .education-workspace scope and were undefined/invalid under .mentorship-home. */
  --tl-success-fg: #15803D; --tl-success-bg: #E9F7EE;
  --tl-warning-fg: #B4790F; --tl-warning-bg: #FDF3E1;
  --tl-error-fg:   #B91C1C; --tl-error-bg:   #FDECEC;
  --tl-info-fg:    #1D4ED8; --tl-info-bg:    #EAF1FE;

  /* Spacing — 8px grid */
  --tl-space-1: 8px;
  --tl-space-2: 16px;
  --tl-space-3: 24px;
  --tl-space-4: 32px;
  --tl-space-5: 40px;
  --tl-space-6: 48px;

  /* Radius */
  --tl-radius-card:   12px;
  --tl-radius-button: 8px;
  --tl-radius-badge:  6px;
  --tl-radius-pill:   20px;

  /* Fluent UI Blazor token remap — Fluent web components read these custom properties directly
     (same mechanism education-tokens.css/ProjectList.razor already rely on), so overriding them
     here recolors FluentButton/FluentBadge/AppCard without touching their markup. */
  --accent-fill-rest: var(--tl-accent);
  --fill-color: var(--tl-surface);
  --neutral-foreground-rest: var(--tl-text);
  --neutral-foreground-hint: var(--tl-text-2);
  --neutral-stroke-rest: var(--tl-border);

  background: var(--tl-bg);
  color: var(--tl-text);
}

/* Dark theme scope — applied by MentorshipHome.razor alongside .mentorship-home when
   ThemeStateService.Mode is Dark, mirroring education-tokens.css's .education-workspace.theme-dark
   block and this Claude Design system's own manifest. Only the semantic aliases are re-pointed
   here (values are the raw hex, not var(--tl-dark-*) indirection, since this file — unlike
   education-tokens.css — never introduced a separate raw-token layer); --tl-navy/--tl-gold/
   --tl-blue/--tl-accent are intentionally left untouched — the design keeps gold as the accent
   in both light and dark mode. */
.mentorship-home.theme-dark {
  --tl-bg:          #080F1A;
  --tl-surface:     #0D1B2E;
  --tl-surface-alt: #152336;
  --tl-border:      #1E2F45;
  --tl-text:        #FFFFFF;
  --tl-text-2:      #CBD5E1;
  --tl-text-muted:  #64748B;
  --tl-link:        #6C9BFF;

  --tl-success-fg: #4ADE80; --tl-success-bg: #10261A;
  --tl-warning-fg: #F4A623; --tl-warning-bg: #2A2110;
  --tl-error-fg:   #F87171; --tl-error-bg:   #2A1414;
  --tl-info-fg:    #60A5FA; --tl-info-bg:    #12203A;
}

/* app.css's .app-card hardcodes border-radius: 5px !important, so the custom-property remap
   above can't reach it (same gap education-tokens.css/CourseWorkspace.razor already hit).
   GetStartedSection.razor's <AppCard> is the only AppCard instance on this page today. */
.mentorship-home .app-card {
  border-radius: var(--tl-radius-card) !important;
}
