/* pixel ahoi look for Gitea: accent colors only, layered on the stock themes.
   Docs: Outline server.pixel-ahoi.net > 05 Docker
   Loaded from templates/custom/header.tmpl, bump ?v= there after changing this file. */

:root {
  --pxa-text: #cd3914;
  --color-primary: #ff5c40;
  --color-primary-contrast: #ffffff;
  --color-logo: #ff8671;
  --color-syntax-link: #cd3914;
  --color-primary-dark-1: #f73a1f;
  --color-primary-dark-2: #de2511;
  --color-primary-dark-3: #b42115;
  --color-primary-dark-4: #8d1d17;
  --color-primary-dark-5: #4d1414;
  --color-primary-dark-6: #1f090a;
  --color-primary-dark-7: #060202;
  --color-primary-light-1: #ff6c53;
  --color-primary-light-2: #ff7d66;
  --color-primary-light-3: #ff8d79;
  --color-primary-light-4: #ff9d8c;
  --color-primary-light-5: #ffbeb3;
  --color-primary-light-6: #ffded9;
  --color-primary-light-7: #fff5f4;
  --color-primary-alpha-10: #ff5c4019;
  --color-primary-alpha-20: #ff5c4033;
  --color-primary-alpha-30: #ff5c404b;
  --color-primary-alpha-40: #ff5c4066;
  --color-primary-alpha-50: #ff5c4080;
  --color-primary-alpha-60: #ff5c4099;
  --color-primary-alpha-70: #ff5c40b3;
  --color-primary-alpha-80: #ff5c40cc;
  --color-primary-alpha-90: #ff5c40e1;
}

:root[data-theme^="gitea-dark"] {
  --pxa-text: #ff8671;
  --color-primary: #ff8671;
  --color-primary-contrast: #1b1c1e;
  --color-logo: #ff8671;
  --color-syntax-link: #ff8671;
  --color-primary-dark-1: #ff927f;
  --color-primary-dark-2: #ff9e8d;
  --color-primary-dark-3: #ffaa9c;
  --color-primary-dark-4: #ffb6aa;
  --color-primary-dark-5: #ffcfc6;
  --color-primary-dark-6: #ffe7e3;
  --color-primary-dark-7: #fff8f6;
  --color-primary-light-1: #f85e49;
  --color-primary-light-2: #ef3925;
  --color-primary-light-3: #cf2618;
  --color-primary-light-4: #a3211b;
  --color-primary-light-5: #581718;
  --color-primary-light-6: #230a0b;
  --color-primary-light-7: #070203;
  --color-primary-alpha-10: #ff867119;
  --color-primary-alpha-20: #ff867133;
  --color-primary-alpha-30: #ff86714b;
  --color-primary-alpha-40: #ff867166;
  --color-primary-alpha-50: #ff867180;
  --color-primary-alpha-60: #ff867199;
  --color-primary-alpha-70: #ff8671b3;
  --color-primary-alpha-80: #ff8671cc;
  --color-primary-alpha-90: #ff8671e1;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme^="gitea-auto"] {
    --pxa-text: #ff8671;
    --color-primary: #ff8671;
    --color-primary-contrast: #1b1c1e;
    --color-logo: #ff8671;
    --color-syntax-link: #ff8671;
    --color-primary-dark-1: #ff927f;
    --color-primary-dark-2: #ff9e8d;
    --color-primary-dark-3: #ffaa9c;
    --color-primary-dark-4: #ffb6aa;
    --color-primary-dark-5: #ffcfc6;
    --color-primary-dark-6: #ffe7e3;
    --color-primary-dark-7: #fff8f6;
    --color-primary-light-1: #f85e49;
    --color-primary-light-2: #ef3925;
    --color-primary-light-3: #cf2618;
    --color-primary-light-4: #a3211b;
    --color-primary-light-5: #581718;
    --color-primary-light-6: #230a0b;
    --color-primary-light-7: #070203;
    --color-primary-alpha-10: #ff867119;
    --color-primary-alpha-20: #ff867133;
    --color-primary-alpha-30: #ff86714b;
    --color-primary-alpha-40: #ff867166;
    --color-primary-alpha-50: #ff867180;
    --color-primary-alpha-60: #ff867199;
    --color-primary-alpha-70: #ff8671b3;
    --color-primary-alpha-80: #ff8671cc;
    --color-primary-alpha-90: #ff8671e1;
  }
}

/* Filled buttons and labels: coral-deep with white text in both modes (owner decision;
   white on the lighter coral only reaches 2.4:1). Re-scoping the variables on
   the element keeps this independent of Gitea's own button rules. Basic variants
   stay excluded: they show the color as text, where peach is unreadable on white. */
.ui.primary.button:not(.basic),
.ui.primary.buttons:not(.basic) .button,
.ui.primary.label:not(.basic) {
  --color-primary: #ff5c40;
  --color-primary-contrast: #ffffff;
  --color-primary-hover: #e6533a;
  --color-primary-active: #cc4a33;
}

/* --color-primary is the bright coral so that icons, fills, borders and focus rings
   get it by default. Only real text needs the readable --pxa-text (4.5:1). */
a {
  color: var(--pxa-text);
}

a:hover,
.ui.basic.primary.button,
.ui.basic.primary.label,
.tw-text-primary,
.repository.view.issue .pull-desc code,
.action-run-summary-branch-label,
.job-log-line:target > .line-num,
.cm-completionMatchedText,
.cm-command-palette-label mark {
  --color-primary: var(--pxa-text);
  --color-primary-hover: var(--pxa-text);
  --color-primary-active: var(--pxa-text);
  --color-primary-dark-1: var(--pxa-text);
}

/* Commit heatmap: same scale in every theme. Dark themes mirror the dark/light steps,
   which would turn "less" into dark and "more" into pale. */
#user-heatmap {
  --color-primary: #ff5c40;
  --color-primary-light-4: #ff9d8c;
  --color-primary-light-2: #ff7d66;
  --color-primary-dark-2: #de2511;
  --color-primary-dark-4: #8d1d17;
}

/* Thin brand line above the navbar */
#navbar {
  background-image: linear-gradient(#ff8671, #ff8671);
  background-repeat: no-repeat;
  background-size: 100% 3px;
}
