/**
 * @name system24 (nord)
 * @description a tui-like discord theme. based on nord theme (https://www.nordtheme.com).
 * @author refact0r
 * @version 2.0.0
 * @invite nz87hXyvcy
 * @website https://github.com/refact0r/system24
 * @source https://github.com/refact0r/system24/blob/master/theme/system24-nord.theme.css
 * @authorId 508863359777505290
 * @authorLink https://www.refact0r.dev
*/

/* import theme modules */
@import url('https://refact0r.github.io/system24/build/system24.css');

body {
    /* font, change to '' for default discord font */
    --font: 'JetBrainsMono Nerd Font'; /* change to '' for default discord font */
    --code-font: 'Iosevka'; /* change to '' for default discord font */
    font-weight: 400; /* text font weight. 300 is light, 400 is normal. DOES NOT AFFECT BOLD TEXT */
    letter-spacing: -0.05ch; /* decreases letter spacing for better readability. recommended on monospace fonts.*/

    /* sizes */
    --gap: 12px; /* spacing between panels */
    --divider-thickness: 4px; /* thickness of unread messages divider and highlighted message borders */
    --border-thickness: 2px; /* thickness of borders around main panels. DOES NOT AFFECT OTHER BORDERS */
    --border-hover-transition: 0.2s ease; /* transition for borders when hovered */

    /* animation/transition options */
    --animations: on; /* off: disable animations/transitions, on: enable animations/transitions */
    --list-item-transition: 0.2s ease; /* transition for list items */
    --dms-icon-svg-transition: 0.4s ease; /* transition for the dms icon */

    /* top bar options */
    --top-bar-height: var(--gap); /* height of the top bar (discord default is 36px, old discord style is 24px, var(--gap) recommended if button position is set to titlebar) */
    --top-bar-button-position: titlebar; /* off: default position, hide: hide buttons completely, serverlist: move inbox button to server list, titlebar: move inbox button to channel titlebar (will hide title) */
    --top-bar-title-position: off; /* off: default centered position, hide: hide title completely, left: left align title (like old discord) */
    --subtle-top-bar-title: off; /* off: default, on: hide the icon and use subtle text color (like old discord) */

    /* window controls */
    --custom-window-controls: off; /* off: default window controls, on: custom window controls */
    --window-control-size: 14px; /* size of custom window controls */

    /* dms button options */
    --custom-dms-icon: off; /* off: use default discord icon, hide: remove icon entirely, custom: use custom icon */
    --dms-icon-svg-url: url(''); /* icon svg url. MUST BE A SVG. */
    --dms-icon-svg-size: 90%; /* size of the svg (css mask-size property) */
    --dms-icon-color-before: var(--icon-secondary); /* normal icon color */
    --dms-icon-color-after: var(--white); /* icon color when button is hovered/selected */
    --custom-dms-background: off; /* off to disable, image to use a background image (must set url variable below), color to use a custom color/gradient */
    --dms-background-image-url: url(''); /* url of the background image */
    --dms-background-image-size: cover; /* size of the background image (css background-size property) */
    --dms-background-color: linear-gradient(70deg, var(--blue-2), var(--purple-2), var(--red-2)); /* fixed color/gradient (css background property) */

    /* background image options */
    --background-image: off; /* off: no background image, on: enable background image (must set url variable below) */
    --background-image-url: url(''); /* url of the background image */

    /* transparency/blur options */
    /* NOTE: TO USE TRANSPARENCY/BLUR, YOU MUST HAVE TRANSPARENT BG COLORS. FOR EXAMPLE: --bg-4: hsla(220, 15%, 10%, 0.7); */
    --transparency-tweaks: off; /* off: no changes, on: remove some elements for better transparency */
    --remove-bg-layer: off; /* off: no changes, on: remove the base --bg-3 layer for use with window transparency (WILL OVERRIDE BACKGROUND IMAGE) */
    --panel-blur: off; /* off: no changes, on: blur the background of panels */
    --blur-amount: 12px; /* amount of blur */
    --bg-floating: var(--bg-3); /* set this to a more opaque color if floating panels look too transparent. only applies if panel blur is on  */

    /* other options */
    --small-user-panel: on; /* off: default user panel, on: smaller user panel like in old discord */

    /* unrounding options */
    --unrounding: on; /* off: default, on: remove rounded corners from panels */

    /* styling options */
    --custom-spotify-bar: on; /* off: default, on: custom text-like spotify progress bar */
    --ascii-titles: on; /* off: default, on: use ascii font for titles at the start of a channel */
    --ascii-loader: system24; /* off: default, system24: use system24 ascii loader, cats: use cats loader */

    /* panel labels */
    --panel-labels: on; /* off: default, on: add labels to panels */
    --label-color: var(--text-muted); /* color of labels */
    --label-font-weight: 500; /* font weight of labels */
}

/* color options */
/* color options */
:root {
    --colors: on; /* off: discord default colors, on: midnight custom colors */

    /* text colors */
    --text-0: var(--bg-3); /* text on colored elements */
    --text-1: #fbf1c7; /* bright white (light0) */
    --text-2: #ebdbb2; /* softer white (light1) */
    --text-3: #d5c4a1; /* normal text (light2) */
    --text-4: #a89984; /* muted text */
    --text-5: #928374; /* very muted (gray) */

    /* background and dark colors */
    --bg-1: #3c3836; /* dark buttons when clicked */
    --bg-2: #32302f; /* dark buttons */
    --bg-3: #282828; /* spacing, secondary elements */
    --bg-4: #1d2021; /* main background color */
    --hover: hsla(40, 30%, 60%, 0.1); /* channels and buttons when hovered */
    --active: hsla(40, 30%, 60%, 0.2); /* clicked/selected */
    --active-2: hsla(40, 30%, 60%, 0.3);
    --message-hover: hsla(0, 0%, 100%, 0.05);

    /* accent colors */
    --accent-1: var(--yellow-2); /* links and accent text */
    --accent-2: var(--red-2);    /* small accent elements */
    --accent-3: var(--yellow-3); /* accent buttons */
    --accent-4: var(--yellow-4); /* accent buttons hover */
    --accent-5: var(--yellow-5); /* accent buttons active */
    --accent-new: var(--accent-2); 
    --mention: linear-gradient(to right, color-mix(in hsl, var(--accent-2), transparent 90%) 40%, transparent);
    --mention-hover: linear-gradient(to right, color-mix(in hsl, var(--accent-2), transparent 95%) 40%, transparent);
    --reply: linear-gradient(to right, color-mix(in hsl, var(--text-3), transparent 90%) 40%, transparent);
    --reply-hover: linear-gradient(to right, color-mix(in hsl, var(--text-3), transparent 95%) 40%, transparent);

    /* status indicator colors */
    --online: var(--green-2);
    --dnd: var(--red-2);
    --idle: var(--yellow-2);
    --streaming: var(--purple-2);
    --offline: var(--text-4);

    /* border colors */
    --border-light: hsla(40, 30%, 60%, 0.05);
    --border: hsla(40, 30%, 60%, 0.1);
    --border-hover: var(--accent-2);
    --button-border: hsla(0, 0%, 100%, 0.1);

    /* base Gruvbox colors */
    --red-1: #fb4934;
    --red-2: #cc241d;
    --red-3: #cc241d;
    --red-4: #9d0006;
    --red-5: #7c0000;

    --green-1: #b8bb26;
    --green-2: #98971a;
    --green-3: #98971a;
    --green-4: #79740e;
    --green-5: #5a5a0a;

    --yellow-1: #fabd2f;
    --yellow-2: #d79921;
    --yellow-3: #d79921;
    --yellow-4: #b57614;
    --yellow-5: #a87d00;

    --blue-1: #83a598;
    --blue-2: #458588;
    --blue-3: #458588;
    --blue-4: #076678;
    --blue-5: #005f5f;

    --purple-1: #d3869b;
    --purple-2: #b16286;
    --purple-3: #b16286;
    --purple-4: #8f3f71;
    --purple-5: #7c2f5d;

    --aqua-1: #8ec07c;
    --aqua-2: #689d6a;
    --aqua-3: #689d6a;
    --aqua-4: #427b58;
    --aqua-5: #365836;
}

