/**
 * Base styles — переменные, сброс, типографика
 * NeuroEGE — AI-тренажёр ЕГЭ по информатике
 */

:root,
[data-theme="dark"] {
  --bg: #23282d;
  --white: #ffffff;
  --green: #05b87d;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-footer: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] {
  --bg: #f5f5f7;
  --white: #1d1d1f;
  --green: #05b87d;
  --text-muted: rgba(0, 0, 0, 0.6);
  --text-footer: rgba(0, 0, 0, 0.5);
}

/* Theme toggle — правый верхний угол */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.125rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  opacity: 0.9;
  border-color: var(--green);
}

.theme-toggle__icon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--light {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--dark {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
