/**
 * phpMyFAQ 4.0 default theme
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License,
 * v. 2.0. If a copy of the MPL was not distributed with this file, You can
 * obtain one at https://mozilla.org/MPL/2.0/.
 *
 * @package   phpMyFAQ
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @copyright 2024-2025 phpMyFAQ Team
 * @license   https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
 * @link      https://www.phpmyfaq.de
 * @since     2024-09-01
 */

/* Font -Atkinson Hyperlegible Next- from Braille Institute for high-contrast mode to achieve better A11y */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../../fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('../../fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root,
[data-bs-theme='light'] {
  /* Mailvio brand (mailvio.com) */
  --bs-light: #f4f4f5;
  --bs-dark: #09090b;
  --bs-primary: #b4d567;
  --bs-primary-rgb: 180, 213, 103;
  --bs-secondary: #52525b;
  --bs-info: #0ea5e9;
  --bs-success: #65a30d;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;
  --bs-pmf-nav: #ffffff;
  --bs-pmf-footer: #09090b;
  --bs-pmf-background: #fafafa;

  /* Bootstrap body variables for light mode */
  --bs-body-bg: #fafafa;
  --bs-body-color: #09090b;
  --bs-border-color: #e4e4e7;
  --bs-link-color: #4d7c0f;
  --bs-link-color-rgb: 77, 124, 15;
  --bs-link-hover-color: #3f6212;
  --bs-link-hover-color-rgb: 63, 98, 18;
}

[data-bs-theme='dark'] {
  --bs-light: #fafafa;
  --bs-dark: #09090b;
  --bs-primary: #b4d567;
  --bs-primary-rgb: 180, 213, 103;
  --bs-secondary: #a1a1aa;
  --bs-info: #38bdf8;
  --bs-success: #84cc16;
  --bs-warning: #fbbf24;
  --bs-danger: #f87171;
  --bs-pmf-nav: #09090b;
  --bs-pmf-footer: #09090b;
  --bs-pmf-background: #09090b;

  /* Bootstrap body variables for dark mode */
  --bs-body-bg: #09090b;
  --bs-body-color: #fafafa;
  --bs-border-color: #27272a;
  --bs-link-color: #b4d567;
  --bs-link-color-rgb: 180, 213, 103;
  --bs-link-hover-color: #c8e08f;
  --bs-link-hover-color-rgb: 200, 224, 143;
}

[data-bs-theme='high-contrast'] {
  --bs-light: #ffffff;
  --bs-dark: #000000;
  --bs-primary: #ffff00;
  --bs-secondary: #00ffff;
  --bs-info: #00ffff;
  --bs-success: #00ff00;
  --bs-warning: #ffff00;
  --bs-danger: #ff0000;
  --bs-pmf-nav: #000000;
  --bs-pmf-footer: #000000;
  --bs-pmf-background: #000000;

  /* Bootstrap body variables for high contrast mode */
  --bs-body-bg: #000000;
  --bs-body-color: #ffffff;
  --bs-border-color: #ffffff;
  --bs-link-color: #ffff00;
  --bs-link-hover-color: #ffff66;

  /* Individual high-contrast adjustments */

  body {
    font-family: 'Atkinson Hyperlegible Next' !important;
    font-size: 1.3rem;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
  }
}
