/* ==========================================================================
   KUBIQX — спільна основа для сайту та адмін-панелі: шрифти й теми.
   Колір, шрифт чи нову тему змінюйте тут — зміни підхоплять обидві частини.

   Щоб додати тему: скопіюйте блок [data-theme="…"], змініть значення, додайте
   назву в theme.available (config/app.php) та в THEMES (assets/js/theme.js).
   ========================================================================== */

/* Шрифти — локальні файли, без зовнішніх CDN ------------------------------ */

@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Теми -------------------------------------------------------------------- */

:root,
[data-theme="cyber-dark"] {
    color-scheme: dark;
    --bg: #0a0e11;
    --surface: #10161a;
    --raised: #172026;
    --line: #25323b;
    --text: #e4ecef;
    --muted: #8fa1ab;
    --accent: #80c0c0;          /* бірюзовий із логотипа */
    --accent-strong: #a5d8d8;
    --on-accent: #06211f;
    --danger: #ff7a7a;
    --warning: #f2bd62;
    --success: #74d6a0;
    --focus: #d6f3f3;
    --code-comment: #6f838e;
    --code-key: #80c0c0;
    --code-string: #b9e08a;
    --code-number: #f2bd62;
    --code-keyword: #c8a6ff;
    --code-function: #8fc7ff;
}

[data-theme="clean-light"] {
    color-scheme: light;
    --bg: #f3f5f5;
    --surface: #ffffff;
    --raised: #eaeeef;
    --line: #d5dcdf;
    --text: #0e161a;
    --muted: #55656e;
    --accent: #1c7474;
    --accent-strong: #135a5a;
    --on-accent: #ffffff;
    --danger: #b3261e;
    --warning: #8a5a00;
    --success: #1a6f43;
    --focus: #0e161a;
    --code-comment: #6b7a82;
    --code-key: #0f6a6a;
    --code-string: #2f6b1c;
    --code-number: #9a5200;
    --code-keyword: #6b3fb8;
    --code-function: #1456a8;
}

[data-theme="engineering-amber"] {
    color-scheme: dark;
    --bg: #120e08;
    --surface: #1a150d;
    --raised: #241d12;
    --line: #3b3020;
    --text: #f4e7cf;
    --muted: #b49d7b;
    --accent: #ffb000;
    --accent-strong: #ffc94d;
    --on-accent: #1c1200;
    --danger: #ff8a70;
    --warning: #ffd27a;
    --success: #a8d672;
    --focus: #fff1cc;
    --code-comment: #8f7c5e;
    --code-key: #ffb000;
    --code-string: #d9c27a;
    --code-number: #ff8a70;
    --code-keyword: #ffd27a;
    --code-function: #f4e7cf;
}

:root {
    --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --radius: 4px;
    --sidebar: 15rem;
    --tile: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);   /* грань куба з логотипа */
}

