/* YuukaGit - "Steam Classic" theme.
   Recreates the 2003-2008 Steam client (VGUI) look: olive panels,
   bevelled 3D edges, mustard accents, square corners, Trebuchet/Tahoma. */

gitea-theme-meta-info {
  --theme-display-name: "Steam Classic";
  --theme-color-scheme: "dark";
}

:root {
  --is-dark-theme: true;
  --color-primary: #c4b550;
  --color-primary-contrast: #292d23;
  --color-primary-dark-1: #cabd63;
  --color-primary-dark-2: #d1c576;
  --color-primary-dark-3: #d7cd8a;
  --color-primary-dark-4: #ded69d;
  --color-primary-dark-5: #e4deb0;
  --color-primary-dark-6: #ebe6c4;
  --color-primary-dark-7: #f1eed7;
  --color-primary-light-1: #b1a54b;
  --color-primary-light-2: #9f9445;
  --color-primary-light-3: #8c8440;
  --color-primary-light-4: #7a743a;
  --color-primary-light-5: #676335;
  --color-primary-light-6: #545330;
  --color-primary-light-7: #42432a;
  --color-primary-alpha-10: #c4b55019;
  --color-primary-alpha-20: #c4b55033;
  --color-primary-alpha-30: #c4b5504b;
  --color-primary-alpha-40: #c4b55066;
  --color-primary-alpha-50: #c4b55080;
  --color-primary-alpha-60: #c4b55099;
  --color-primary-alpha-70: #c4b550b3;
  --color-primary-alpha-80: #c4b550cc;
  --color-primary-alpha-90: #c4b550e1;
  --color-primary-hover: var(--color-primary-light-1);
  --color-primary-active: var(--color-primary-light-2);
  --color-secondary: #2f3429;
  --color-secondary-dark-1: #3b4035;
  --color-secondary-dark-2: #474c40;
  --color-secondary-dark-3: #53584c;
  --color-secondary-dark-4: #5e6457;
  --color-secondary-dark-5: #6a7063;
  --color-secondary-dark-6: #767c6f;
  --color-secondary-dark-7: #82877a;
  --color-secondary-dark-8: #8e9386;
  --color-secondary-dark-9: #9a9f92;
  --color-secondary-dark-10: #a5ab9d;
  --color-secondary-dark-11: #b1b7a9;
  --color-secondary-dark-12: #bdc3b4;
  --color-secondary-dark-13: #c9cfc0;
  --color-secondary-light-1: #2a2e24;
  --color-secondary-light-2: #242820;
  --color-secondary-light-3: #1f231b;
  --color-secondary-light-4: #1a1d16;
  --color-secondary-alpha-10: #2f342919;
  --color-secondary-alpha-20: #2f342933;
  --color-secondary-alpha-30: #2f34294b;
  --color-secondary-alpha-40: #2f342966;
  --color-secondary-alpha-50: #2f342980;
  --color-secondary-alpha-60: #2f342999;
  --color-secondary-alpha-70: #2f3429b3;
  --color-secondary-alpha-80: #2f3429cc;
  --color-secondary-alpha-90: #2f3429e1;
  --color-secondary-button: var(--color-secondary-dark-4);
  --color-secondary-hover: var(--color-secondary-dark-3);
  --color-secondary-active: var(--color-secondary-dark-2);
  --color-console-fg: #f8f8f8;
  --color-console-fg-subtle: #c1c3c8;
  --color-console-bg: #23271e;
  --color-console-border: #292d23;
  --color-console-hover-bg: #2a2c30;
  --color-console-active-bg: #313338;
  --color-console-menu-bg: #4c5844;
  --color-console-menu-border: #46494f;
  --color-console-link: #969aa1;
  --color-red: #cc4848;
  --color-orange: #cc580c;
  --color-yellow: #c4b550;
  --color-olive: #91a313;
  --color-green: #87ab63;
  --color-teal: #00918a;
  --color-blue: #3a8ac6;
  --color-violet: #906ae1;
  --color-purple: #b259d0;
  --color-pink: #d22e8b;
  --color-brown: #a47252;
  --color-black: #202225;
  --color-red-light: #d15a5a;
  --color-orange-light: #f6a066;
  --color-yellow-light: #eaaf03;
  --color-olive-light: #abc016;
  --color-green-light: #93b373;
  --color-teal-light: #00b6ad;
  --color-blue-light: #4e96cc;
  --color-violet-light: #9b79e4;
  --color-purple-light: #ba6ad5;
  --color-pink-light: #d74397;
  --color-brown-light: #b08061;
  --color-black-light: #45484e;
  --color-red-dark-1: #c23636;
  --color-orange-dark-1: #f38236;
  --color-yellow-dark-1: #b88a03;
  --color-olive-dark-1: #839311;
  --color-green-dark-1: #7a9e55;
  --color-teal-dark-1: #00837c;
  --color-blue-dark-1: #347cb3;
  --color-violet-dark-1: #7b4edb;
  --color-purple-dark-1: #a742c9;
  --color-pink-dark-1: #be297d;
  --color-brown-dark-1: #94674a;
  --color-black-dark-1: #2e3033;
  --color-red-dark-2: #ad3030;
  --color-orange-dark-2: #f16e17;
  --color-yellow-dark-2: #a37a02;
  --color-olive-dark-2: #74820f;
  --color-green-dark-2: #6c8c4c;
  --color-teal-dark-2: #00746e;
  --color-blue-dark-2: #2e6e9f;
  --color-violet-dark-2: #6733d6;
  --color-purple-dark-2: #9834b9;
  --color-pink-dark-2: #a9246f;
  --color-brown-dark-2: #835b42;
  --color-black-dark-2: #292b2e;
  --color-ansi-black: #202225;
  --color-ansi-red: #cc4848;
  --color-ansi-green: #87ab63;
  --color-ansi-yellow: #cc9903;
  --color-ansi-blue: #3a8ac6;
  --color-ansi-magenta: #d22e8b;
  --color-ansi-cyan: #00918a;
  --color-ansi-white: var(--color-console-fg-subtle);
  --color-ansi-bright-black: #45484e;
  --color-ansi-bright-red: #d15a5a;
  --color-ansi-bright-green: #93b373;
  --color-ansi-bright-yellow: #eaaf03;
  --color-ansi-bright-blue: #4e96cc;
  --color-ansi-bright-magenta: #d74397;
  --color-ansi-bright-cyan: #00b6ad;
  --color-ansi-bright-white: var(--color-console-fg);
  --color-series-16-0: #7db233;
  --color-series-16-1: #499a37;
  --color-series-16-2: #ce4751;
  --color-series-16-3: #8f9121;
  --color-series-16-4: #ac32a6;
  --color-series-16-5: #7445e9;
  --color-series-16-6: #c67d28;
  --color-series-16-7: #4db392;
  --color-series-16-8: #aa4d30;
  --color-series-16-9: #2a6f84;
  --color-series-16-10: #c45327;
  --color-series-16-11: #3d965c;
  --color-series-16-12: #792a93;
  --color-series-16-13: #439d73;
  --color-series-16-14: #103aad;
  --color-series-16-15: #982e85;
  --color-grey: #3d3f44;
  --color-grey-light: #898d96;
  --color-gold: #c4b550;
  --color-white: #ffffff;
  --color-diff-added-fg: #93b373;
  --color-diff-added-linenum-bg: #274227;
  --color-diff-added-row-bg: #203224;
  --color-diff-added-row-border: #314a37;
  --color-diff-added-word-bg: #3c653c;
  --color-diff-moved-row-bg: #818044;
  --color-diff-moved-row-border: #bcca6f;
  --color-diff-removed-fg: #fb5f5b;
  --color-diff-removed-linenum-bg: #482121;
  --color-diff-removed-row-bg: #301e1e;
  --color-diff-removed-row-border: #634343;
  --color-diff-removed-word-bg: #6f3333;
  --color-diff-inactive: #25272a;
  --color-error-border: #763232;
  --color-error-bg: #322226;
  --color-error-bg-active: #49262a;
  --color-error-bg-hover: #3c2427;
  --color-error-text: #f85149;
  --color-success-border: #225633;
  --color-success-bg: #1c3329;
  --color-success-text: #3fb950;
  --color-warning-border: #5f481a;
  --color-warning-bg: #342e1f;
  --color-warning-text: #d29922;
  --color-info-border: #254a7e;
  --color-info-bg: #1b283a;
  --color-info-text: #2f81f7;
  --color-priority-border: #4a268d;
  --color-priority-bg: #251c39;
  --color-priority-text: #a371f7;
  --color-red-badge: #db2828;
  --color-red-badge-bg: #db28281a;
  --color-red-badge-hover-bg: #db28284d;
  --color-green-badge: #21ba45;
  --color-green-badge-bg: #21ba451a;
  --color-green-badge-hover-bg: #21ba454d;
  --color-yellow-badge: #fbbd08;
  --color-yellow-badge-bg: #fbbd081a;
  --color-yellow-badge-hover-bg: #fbbd084d;
  --color-orange-badge: #f2711c;
  --color-orange-badge-bg: #f2711c1a;
  --color-orange-badge-hover-bg: #f2711c4d;
  --color-git: #f05133;
  --color-logo: #c4b550;
  --color-body: #3e4637;
  --color-box-header: #4c5844;
  --color-box-body: #3e4637;
  --color-box-body-highlight: #465040;
  --color-text-dark: #ffffff;
  --color-text: #dfe3d8;
  --color-text-light: #c9cfc0;
  --color-text-light-1: #b5bdaa;
  --color-text-light-2: #a0aa95;
  --color-text-light-3: #8a9480;
  --color-footer: #4c5844;
  --color-timeline: #292d23;
  --color-input-text: var(--color-text-dark);
  --color-input-background: #353c2f;
  --color-input-toggle-background: #5a6a50;
  --color-input-border: #292d23;
  --color-light: #1a1d1628;
  --color-light-border: #89928140;
  --color-hover: #89928126;
  --color-hover-opaque: #465040;
  --color-active: #89928140;
  --color-menu: #4c5844;
  --color-card: #4c5844;
  --color-markup-table-row: #89928114;
  --color-markup-code-block: #292d2380;
  --color-markup-code-inline: #292d23a0;
  --color-button: #4c5844;
  --color-code-bg: #353c2f;
  --color-shadow: #12140f80;
  --color-shadow-opaque: #12140f;
  --color-secondary-bg: #4c5844;
  --color-expand-button: #5a6a50;
  --color-placeholder-text: var(--color-text-light-3);
  --color-editor-line-highlight: var(--color-secondary-alpha-40);
  --color-editor-selection: #96892da0;
  --color-project-column-bg: #353c2f;
  --color-caret: var(--color-text);
  --color-reaction-bg: #89928120;
  --color-reaction-hover-bg: var(--color-primary-light-4);
  --color-reaction-active-bg: var(--color-primary-light-5);
  --color-tooltip-text: #dfe3d8;
  --color-tooltip-bg: #292d23f2;
  --color-nav-bg: #4c5844;
  --color-nav-hover-bg: #5a6a50;
  --color-nav-text: #dfe3d8;
  --color-secondary-nav-bg: #4c5844;
  --color-label-text: #dfe3d8;
  --color-label-bg: #5a6a50c0;
  --color-label-hover-bg: #6b7c60;
  --color-label-active-bg: #7a8a6e;
  --color-accent: #c4b550;
  --color-small-accent: #6b6630;
  --color-highlight-fg: #c4b550;
  --color-highlight-bg: #5c5528;
  --color-overlay-backdrop: #1a1d16c0;
  --color-danger: var(--color-red);
  --color-transparency-grid-light: #465040;
  --color-transparency-grid-dark: #3e4637;
  --color-workflow-edge-hover: #666a73;
  --color-syntax-keyword: #ff8854;
  --color-syntax-bool: #25bbc9;
  --color-syntax-control: #dd9e17;
  --color-syntax-name: #fabd2f;
  --color-syntax-type: #eb8cb3;
  --color-syntax-number: #63b2dd;
  --color-syntax-operator: #ff8854;
  --color-syntax-regexp: #b89de4;
  --color-syntax-string: #95b62a;
  --color-syntax-comment: #8898b0;
  --color-syntax-invalid: #ff8686;
  --color-syntax-link: #c4b550;
  --color-syntax-tag: #ff8854;
  --color-syntax-attribute: #c792ff;
  --color-syntax-property: #55afff;
  --color-syntax-variable: #e29b33;
  --color-syntax-string-special: #dd9e17;
  --color-syntax-escape: #c7a618;
  --color-syntax-entity: #c792ff;
  --color-syntax-preproc: #4cbe7a;
  --color-syntax-preproc-file: #63b2dd;
  --color-syntax-decorator: #4cbe7a;
  --color-syntax-namespace: #c9d1d9;
  --color-syntax-name-pseudo: #c792ff;
  --color-syntax-comment-special: #b89de4;
  --color-syntax-text: #c9d1d9;
  --color-syntax-text-alt: #b9bcc7;
  --color-syntax-punctuation: #d2d4db;
  --color-syntax-whitespace: #7f8699;
  --color-syntax-diff-fg: #ffffff;
  --color-syntax-deleted-bg: #5f3737;
  --color-syntax-inserted-bg: #3a523a;
  --color-syntax-emph: #d1a242;
  --color-syntax-strong: #e29b33;
  --color-syntax-heading: #c4b550;
  --color-syntax-subheading: #95b62a;
  --color-syntax-output: #8898b0;
  --color-syntax-prompt: #e29b33;
  --color-syntax-traceback: #ff8686;
  --color-syntax-matching-bracket-bg: #00918a48;
  --color-syntax-nonmatching-bracket-bg: #cc484848;
  accent-color: var(--color-accent);
  color-scheme: dark;
  --border-radius: 0px;
  --border-radius-medium: 0px;
  --fonts-proportional: "Trebuchet MS", Tahoma, Verdana, "Segoe UI", sans-serif;
  --fonts-override: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --bevel-light: #899281;
  --bevel-dark: #292d23;
  --steam-bg: #3e4637;
  --steam-panel: #4c5844;
  --steam-hi: #5a6a50;
  --steam-yellow: #c4b550;
  accent-color: var(--color-accent);
  color-scheme: dark;
}

::selection { background: #96892d; color: #fff; }

/* ---------- raised bevel: buttons ---------- */
.ui.button, .ui.buttons .button, button.btn, .btn, .ui.basic.button,
.ui.primary.button, .ui.red.button, .ui.green.button, .ui.basic.primary.button,
.ui.dropdown.button, .ui.labeled.button > .label {
  background: var(--steam-panel) !important;
  color: var(--color-text) !important;
  border: 1px solid !important;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  text-shadow: none;
}
.ui.button:hover, .btn:hover, .ui.basic.button:hover {
  background: var(--steam-hi) !important;
  color: #fff !important;
}
.ui.button:active, .ui.button.active, .btn:active {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark) !important;
  background: #465040 !important;
}
/* primary actions get the mustard text, like Steam's highlighted buttons */
.ui.primary.button, .ui.green.button, .ui.basic.primary.button {
  color: var(--steam-yellow) !important;
  font-weight: 700;
}
.ui.red.button { color: #e56464 !important; }
.ui.button.disabled, .ui.button:disabled { opacity: .55; }

/* ---------- sunken bevel: inputs ---------- */
input:not([type=checkbox]):not([type=radio]), textarea, select,
.ui.input > input, .ui.form input:not([type]), .ui.form input[type=text],
.ui.form input[type=password], .ui.form input[type=email], .ui.form input[type=search],
.ui.form input[type=url], .ui.form textarea, .ui.selection.dropdown,
.ui.search > .prompt, .ui.form select {
  background: var(--color-input-background) !important;
  border: 1px solid !important;
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
input:focus, textarea:focus, .ui.input > input:focus, .ui.selection.dropdown.active {
  outline: 1px dotted var(--steam-yellow) !important;
  outline-offset: -3px;
}

/* ---------- panels ---------- */
.ui.segment, .ui.segments, .ui.attached.segment, .ui.card, .ui.cards > .card,
.ui.attached.header, .ui.top.attached.header, .ui.modal, .ui.menu:not(.secondary):not(.text),
.repository .file-header, #repo-files-table, .flex-list, .ui.message {
  border-radius: 0 !important;
}
.ui.segment:not(.basic), .ui.card, .ui.cards > .card, .ui.modal,
.ui.menu:not(.secondary):not(.text):not(.navbar) {
  border: 1px solid !important;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light) !important;
  box-shadow: none !important;
}
/* section headers: the yellow Steam titles */
.ui.top.attached.header, .ui.attached.header, .repo-header .repo-title,
.page-content h2.ui.header, .page-content h4.ui.header {
  color: var(--steam-yellow) !important;
}
.ui.top.attached.header {
  background: var(--steam-hi) !important;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light) !important;
}

/* dropdown menus float like old VGUI context menus */
.ui.dropdown .menu, .ui.dropdown .menu > .item, .tippy-box {
  border-radius: 0 !important;
}
.ui.dropdown .menu, .tippy-box[data-theme=menu] {
  background: var(--steam-panel) !important;
  border: 1px solid !important;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light) !important;
  box-shadow: 2px 2px 0 #12140f80 !important;
}
.ui.dropdown .menu > .item:hover, .ui.dropdown .menu > .item.selected {
  background: #96892d !important;
  color: #fff !important;
}

/* ---------- top bar ---------- */
#navbar {
  background: var(--steam-panel) !important;
  border-bottom: 1px solid var(--bevel-dark) !important;
  box-shadow: inset 0 -1px 0 var(--steam-hi), inset 0 1px 0 var(--bevel-light) !important;
}
#navbar .item.active, #navbar a.item:hover, #navbar button.item:hover {
  background: var(--steam-hi) !important;
  color: var(--steam-yellow) !important;
}

/* tabs: yellow underline like Steam's tab strip */
.ui.secondary.pointing.menu .active.item, .ui.secondary.pointing.menu .item.active:hover {
  border-color: var(--steam-yellow) !important;
  color: var(--steam-yellow) !important;
}
.ui.tabular.menu .active.item {
  background: var(--steam-hi) !important;
  border-radius: 0 !important;
}

.page-footer {
  border-top: 1px solid var(--bevel-light) !important;
  box-shadow: inset 0 1px 0 var(--bevel-dark);
}

/* labels / badges / avatars squared off */
.ui.label, .ui.labels .label, .ui.avatar.image, img.ui.avatar, .avatar,
.ui.progress, .ui.progress .bar, .repo-language-color, .ui.checkbox label:before {
  border-radius: 0 !important;
}

a { color: var(--steam-yellow); }
a:hover { color: #e0d27a; }

/* empty attached boxes (e.g. register link when registration is off) */
.ui.attached.header:empty, .ui.attached.segment:empty { display: none !important; }

/* ---------- old-Steam scrollbars ---------- */
* { scrollbar-color: var(--steam-hi) var(--steam-bg); }
::-webkit-scrollbar { width: 16px; height: 16px; background: var(--steam-bg); }
::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#4c5844 0 25%, #3e4637 0 50%) 0 0 / 2px 2px;
}
::-webkit-scrollbar-thumb {
  background: var(--steam-panel);
  border: 1px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
}
::-webkit-scrollbar-thumb:hover { background: var(--steam-hi); }
::-webkit-scrollbar-corner { background: var(--steam-bg); }
