/*
 * Hevis / Envisage Cloud Solutions — Forgejo dark theme
 *
 * Brand palette from logo:
 *   Navy blue  #1a1acc  — cloud/text in logo
 *   Gold       #f0c000  — "A" lettermark accent
 *
 * Primary color replaces Forgejo's default orange (#fb923c) with brand gold.
 * "Dark" variants are lighter (used as foreground text on dark backgrounds).
 * "Light" variants are darker (used for hover/active/pressed states).
 *
 * Diff accessibility: replaced green (added) with navy blue — same approach as
 * Forgejo's own dark-tritanopia and dark-deuteranopia-protanopia themes, giving
 * blue-vs-red distinction instead of green-vs-red, which is readable across all
 * common color vision deficiencies.
 */

@import "./theme-forgejo-dark.css";

[data-theme="forgejo-dark"],
[data-theme="forgejo-auto"] {

  /* ── Primary: brand gold ─────────────────────────────────────────────── */
  --color-primary:          #f0c000;
  --color-primary-contrast: #000000;

  /* Lighter tints — used as text color on dark backgrounds */
  --color-primary-dark-1:   #f5cc33;
  --color-primary-dark-2:   #f5cc33;
  --color-primary-dark-3:   #f7d966;
  --color-primary-dark-4:   #f7d966;
  --color-primary-dark-5:   #fae699;
  --color-primary-dark-6:   #fae699;
  --color-primary-dark-7:   #fdf3cc;

  /* Darker shades — used for hover / active / pressed states */
  --color-primary-light-1:  #e6b400;
  --color-primary-light-2:  #d4a800;
  --color-primary-light-3:  #c29c00;
  --color-primary-light-4:  #a88800;
  --color-primary-light-5:  #8c7200;
  --color-primary-light-6:  #705c00;
  --color-primary-light-7:  #544600;

  /* Transparent variants for highlight / reaction backgrounds */
  --color-primary-alpha-10: #d4a80019;
  --color-primary-alpha-20: #d4a80033;
  --color-primary-alpha-30: #d4a8004b;
  --color-primary-alpha-40: #d4a80066;
  --color-primary-alpha-50: #d4a80080;
  --color-primary-alpha-60: #d4a80099;
  --color-primary-alpha-70: #d4a800b3;
  --color-primary-alpha-80: #d4a800cc;
  --color-primary-alpha-90: #d4a800e1;

  --color-primary-hover:  var(--color-primary-light-1);
  --color-primary-active: var(--color-primary-light-2);

  /* ── Diff view — navy blue for "added" rows ──────────────────────────── */
  /*
   * Same values as Forgejo dark-tritanopia / dark-deuteranopia-protanopia:
   * replaces the default green-for-added with navy blue so the added/removed
   * distinction is blue vs red rather than green vs red.
   */
  --color-diff-added-word-bg:   #214d88;
  --color-diff-added-row-border:#214d88;
  --color-diff-added-row-bg:    #152846;
  --color-code-bg:              #0d1117;
}

/* Featured repos (custom/templates/custom/featured_repos.tmpl) */
.featured-repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.featured-repo {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--border-radius);
  color: var(--color-text);
}
.featured-repo:hover {
  border-color: var(--color-primary);
  background: var(--color-hover);
  text-decoration: none;
}
.featured-repo-name { font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.featured-repo-desc { color: var(--color-text-light-2); margin-top: 0.25rem; font-size: 0.9em; }
