@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

:root {
  color-scheme: light;
  --bg-dark: #111216;
  --bg-dark-2: #1a1b20;
  --text: #e9eef5;
  --text-muted: #b6c0cc;
  --accent: #62b6f0;
  --accent-2: #8a5cf6;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --maxw: 80%;
  --radius: 16px;
  --gradient1: #122b42;
  --gradient2: #1c0f43;
  --shadow: #29242f;
  --theme-toggle-border: rgba(16, 34, 57, 0.12);
  --theme-toggle-track: rgba(16, 34, 57, 0.08);
  --theme-toggle-track-active: rgba(98, 182, 240, 0.22);
  --theme-toggle-thumb: #ffffff;
  --theme-toggle-thumb-shadow: 0 4px 12px rgba(16, 34, 57, 0.18);
  --theme-toggle-focus: rgba(98, 182, 240, 0.45);
  --logo-filter:
    brightness(0)
    saturate(100%)
    invert(12%)
    sepia(41%)
    saturate(1265%)
    hue-rotate(176deg)
    brightness(92%)
    contrast(93%);
  --header-bg: rgba(248, 243, 235, 0.9);
  --header-border: rgba(16, 34, 57, 0.08);
  --header-text: #102239;
  --header-dropdown-bg: rgba(248, 243, 235, 0.98);
  --header-dropdown-border: rgba(16, 34, 57, 0.12);
  --header-dropdown-text: #102239;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-toggle-border: rgba(255, 255, 255, 0.12);
  --theme-toggle-track: rgba(255, 255, 255, 0.08);
  --theme-toggle-track-active: rgba(98, 182, 240, 0.34);
  --theme-toggle-thumb: #f5f7fb;
  --theme-toggle-thumb-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  --theme-toggle-focus: rgba(137, 215, 255, 0.48);
  --logo-filter: none;
  --header-bg: rgba(17, 18, 22, 0.9);
  --header-border: rgba(255, 255, 255, 0.06);
  --header-text: #e9eef5;
  --header-dropdown-bg: rgba(17, 18, 22, 0.98);
  --header-dropdown-border: rgba(255, 255, 255, 0.12);
  --header-dropdown-text: #e9eef5;
}

.theme-toggle-item {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--theme-toggle-focus);
  outline-offset: 3px;
  border-radius: 999px;
}

.theme-toggle-track {
  width: 48px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  background: var(--theme-toggle-track);
  padding: 3px;
  transition: background 180ms ease, border-color 180ms ease;
}

.theme-toggle-icon {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  opacity: 0.45;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.theme-toggle-icon--sun {
  transform-origin: center;
}

.theme-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--theme-toggle-thumb);
  box-shadow: var(--theme-toggle-thumb-shadow);
  transition: transform 180ms ease;
}

:root[data-theme="light"] .theme-toggle-icon--sun,
:root[data-theme="dark"] .theme-toggle-icon--moon {
  opacity: 1;
}

:root[data-theme="light"] .theme-toggle-icon--sun {
  color: #d77a1f;
}

:root[data-theme="dark"] .theme-toggle-icon--moon {
  color: #dbe7ff;
}

:root[data-theme="dark"] .theme-toggle-track {
  background: var(--theme-toggle-track-active);
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
