/**
 * @name system24
 * @description a tui-like discord theme.
 * @author refact0r
 * @version 2.0.0
 * @invite nz87hXyvcy
 * @website https://github.com/refact0r/system24
 * @source https://github.com/refact0r/system24/blob/master/theme/system24.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: 'Iosevka Nerd Font Mono'; /* using your preferred font */
    --code-font: 'Iosevka Nerd Font Mono'; /* using your preferred font */
    font-weight: 300; /* 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: on; /* on: enable transparency tweaks */
    --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: rgba(58, 55, 47, 0.95); /* more opaque floating panels */

    /* 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 */
:root {
    --colors: on; /* off: discord default colors, on: custom colors */

    /* text colors */
    --text-0: #2C2A24; /* text on colored elements - using background */
    --text-1: #DDD5C4; /* other normally white text - using text */
    --text-2: #DDD5C4; /* headings and important text - using text */
    --text-3: #DDD5C4; /* normal text - using text */
    --text-4: #A0907A; /* icon buttons and channels - using borders */
    --text-5: #A0907A; /* muted channels/chats and timestamps - using borders */

    /* background and dark colors */
    --bg-1: #D08B57; /* dark buttons when clicked - using focused */
    --bg-2: #3A372F; /* dark buttons - using second-background */
    --bg-3: rgba(58, 55, 47, 0.9); /* spacing, secondary elements - using second-background with transparency */
    --bg-4: rgba(44, 42, 36, 0.9); /* main background color - using background with transparency */
    --hover: rgba(160, 144, 122, 0.2); /* channels and buttons when hovered - using borders with transparency */
    --active: rgba(208, 139, 87, 0.3); /* channels and buttons when clicked or selected - using focused with transparency */
    --active-2: rgba(208, 139, 87, 0.4); /* extra state for transparent buttons */
    --message-hover: rgba(58, 55, 47, 0.5); /* messages when hovered */

    /* accent colors */
    --accent-1: #7699A3; /* links and other accent text - using color1 (blue) */
    --accent-2: #D08B57; /* small accent elements - using focused (orange) */
    --accent-3: #D08B57; /* accent buttons - using focused (orange) */
    --accent-4: #BFAA80; /* accent buttons when hovered - using focused2 */
    --accent-5: #A0907A; /* accent buttons when clicked - using borders */
    --accent-new: #B05A5A; /* stuff that's normally red like mute/deafen buttons - using urgent */
    --mention: linear-gradient(to right, rgba(208, 139, 87, 0.1) 40%, transparent); /* background of messages that mention you */
    --mention-hover: linear-gradient(to right, rgba(208, 139, 87, 0.05) 40%, transparent); /* background of messages that mention you when hovered */
    --reply: linear-gradient(to right, rgba(221, 213, 196, 0.1) 40%, transparent); /* background of messages that reply to you */
    --reply-hover: linear-gradient(to right, rgba(221, 213, 196, 0.05) 40%, transparent); /* background of messages that reply to you when hovered */

    /* status indicator colors */
    --online: #78997A; /* using color3 (green) */
    --dnd: #B05A5A; /* using urgent (red) */
    --idle: #BFAA80; /* using focused2 (yellow-ish) */
    --streaming: #8D7AAE; /* using color2 (purple) */
    --offline: #A0907A; /* using borders for offline */

    /* border colors */
    --border-light: rgba(160, 144, 122, 0.2); /* general light border color */
    --border: rgba(208, 139, 87, 0.3); /* general normal border color */
    --border-hover: #D08B57; /* border color of panels when hovered - using focused */
    --button-border: rgba(221, 213, 196, 0.1); /* neutral border color of buttons */

    /* base colors - using your custom palette */
    --red-1: #B05A5A;
    --red-2: #B05A5A;
    --red-3: #B05A5A;
    --red-4: #B05A5A;
    --red-5: #B05A5A;

    --green-1: #78997A;
    --green-2: #78997A;
    --green-3: #78997A;
    --green-4: #78997A;
    --green-5: #78997A;

    --blue-1: #7699A3;
    --blue-2: #7699A3;
    --blue-3: #7699A3;
    --blue-4: #7699A3;
    --blue-5: #7699A3;

    --yellow-1: #BFAA80;
    --yellow-2: #BFAA80;
    --yellow-3: #BFAA80;
    --yellow-4: #BFAA80;
    --yellow-5: #BFAA80;

    --purple-1: #8D7AAE;
    --purple-2: #8D7AAE;
    --purple-3: #8D7AAE;
    --purple-4: #8D7AAE;
    --purple-5: #8D7AAE;
}
