/* Pitch-black theme for Forgejo.
 *
 * Deployed to $GITEA_CUSTOM/public/assets/css/ on the bastion, which is
 * /srv/data/forgejo/gitea/public/assets/css/ on the host and /data/gitea/... in the
 * container. Forgejo serves everything under that public/ directory at /assets/, and
 * renders <link href="/assets/css/theme-<name>.css"> for whichever theme is selected, so
 * the FILENAME is what registers this theme. "theme-black.css" => the theme is "black".
 *
 * It imports the built-in dark theme rather than carrying a copy of it. A vendored copy
 * would be ~15 KB of upstream CSS that silently goes stale on the next Forgejo upgrade -
 * new variables would be missing and renamed ones would be dead, with nothing to warn
 * you. Importing means an upgrade updates the base and only these overrides stay ours.
 *
 * The cost of that choice: if upstream ever renames theme-forgejo-dark.css, this import
 * 404s. The page still renders (index.css carries the layout) but the colours revert, so
 * the symptom is "my theme went light-ish after an upgrade", not a broken page. Check
 * this file first after a Forgejo major.
 */
@import url("/assets/css/theme-forgejo-dark.css");

:root {
  /* ---- the page itself, and the chrome around it ---- */
  --color-body: #000;
  --color-nav-bg: #000;
  --color-footer: #000;
  --color-header-wrapper: #000;
  --color-header-wrapper-transparent: #00000000;
  --color-secondary-nav-bg: #000;

  /* ---- panels, cards, dropdowns, the file list, the issue boxes ---- */
  --color-box-body: #000;
  --color-box-header: #000;
  --color-card: #000;
  --color-menu: #000;
  --color-secondary-bg: #000;
  --color-project-board-bg: #000;

  /* ---- code, diffs, the console ---- */
  --color-code-bg: #000;
  --color-markup-code-block: #000;
  --color-console-bg: #000;
  --color-markup-code-inline: #0d0d0d;
  --color-editor-line-highlight: #0b0b0b;

  /* ---- form fields ---- */
  --color-input-background: #000;

  /* ---- NOT black, deliberately ----
   * Hover, selection and the "active row" are the only things telling you where the
   * pointer is or what is selected. Black-on-black removes that feedback entirely, so
   * these stay as near-black lifts. Raise them if you want more contrast on hover. */
  --color-box-body-highlight: #141414;
  --color-hover: #191919;
  --color-active: #222;
  --color-nav-hover-bg: #191919;
  --color-input-toggle-background: #1a1a1a;

  /* ---- structure ----
   * With every surface the same black, the greys that used to separate a card from the
   * page are gone, so the BORDERS have to do that work alone. These are lifted above
   * upstream's values on purpose; drop them back toward #1a1a1a for a flatter look. */
  --color-secondary: #2b2b2b;
  --color-secondary-light-1: #343434;
  --color-light-border: #ffffff24;
  --color-input-border: #303030;
  --color-input-border-hover: #474747;
  --color-timeline: #272727;
}
