/*
 * Quantum Live theme foundation.
 *
 * BuddyBoss ReadyLaunch owns Light/Dark state and swaps its semantic
 * --bb-rl-* values automatically. Q-Live aliases those tokens instead of
 * maintaining a second theme state or a duplicate raw-color palette.
 */

body.bb-readylaunch-template {
  /* Typography: both families are already provided by the current frontend. */
  --qlive-font-body:
    Inter, InterText, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --qlive-font-heading:
    Oxanium, Inter, InterText, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Brand. Light Mode uses a calmer product Lime on bright surfaces. */
  --qlive-accent: #76d63a;
  --qlive-accent-hover: #69c52f;
  --qlive-accent-soft: var(
    --bb-rl-background-brand-secondary-hover-color,
    #e3f7d5
  );
  --qlive-accent-text: var(--bb-rl-text-brand-secondary-color, #488600);
  --qlive-on-accent: var(--bb-rl-background-black-color, #0c0c0d);

  /* Surfaces. */
  --qlive-bg: var(--bb-rl-background-secondary-color, #f6f6f6);
  --qlive-surface: var(--bb-rl-background-color, #ffffff);
  --qlive-surface-subtle: var(--bb-rl-background-secondary-color, #f6f6f6);
  --qlive-surface-hover: var(--bb-rl-background-hover-color, #f8f8f8);
  --qlive-surface-strong: var(--bb-rl-background-tertiary-color, #dbdbdb);

  /* Content. */
  --qlive-text: var(--bb-rl-text-color, #242425);
  --qlive-text-muted: var(--bb-rl-text-secondary-color, #555556);
  --qlive-text-subtle: var(--bb-rl-text-tertiary-color, #858586);
  --qlive-text-disabled: var(--bb-rl-text-disabled-color, #9e9e9e);

  /* Borders. */
  --qlive-border: var(--bb-rl-border-secondary-color, #e7e7e7);
  --qlive-border-strong: var(--bb-rl-border-tertiary-color, #cececf);
  --qlive-border-accent: var(--qlive-accent);

  /* Semantic feedback. */
  --qlive-success: var(--bb-rl-text-positive-secondary-color, #14ae5c);
  --qlive-success-text: var(--bb-rl-text-positive-primary-color, #02542d);
  --qlive-success-border: var(--bb-rl-border-positive-secondary-color, #14ae5c);
  --qlive-success-soft: var(
    --bb-rl-background-positive-secondary-color,
    #ebffee
  );
  --qlive-warning: var(--bb-rl-text-warning-secondary-color, #e5a000);
  --qlive-warning-text: var(--bb-rl-text-warning-primary-color, #682d03);
  --qlive-warning-border: var(--bb-rl-border-warning-secondary-color, #e5a000);
  --qlive-warning-soft: var(
    --bb-rl-background-warning-secondary-color,
    #fffbeb
  );
  --qlive-danger: var(--bb-rl-text-danger-secondary-color, #ec221f);
  --qlive-danger-text: var(--bb-rl-text-danger-primary-color, #690807);
  --qlive-danger-border: var(--bb-rl-border-danger-secondary-color, #ec221f);
  --qlive-danger-soft: var(
    --bb-rl-background-danger-secondary-color,
    #fee9e7
  );

  /* Shared component geometry. */
  --qlive-radius-sm: 8px;
  --qlive-radius-md: 12px;
  --qlive-radius-lg: 16px;
  --qlive-radius-xl: 20px;
  --qlive-radius-pill: 999px;

  --qlive-transition-fast: 160ms ease;
  --qlive-focus-ring: 0 0 0 3px
    color-mix(in srgb, var(--qlive-accent) 28%, transparent);
}
/*
 * Dark Mode keeps the brighter native ReadyLaunch Lime. BuddyBoss remains the
 * state controller via bb-rl-dark-mode; only the Q-Live product accent changes.
 */
body.bb-readylaunch-template.bb-rl-dark-mode {
  --qlive-accent: var(--bb-rl-primary-color, #89f336);
  --qlive-accent-hover: var(
    --bb-rl-background-brand-primary-hover-color,
    #76f50c
  );
  --qlive-border-accent: var(--bb-rl-border-brand-secondary-color, #89f336);
}
