/* ================================================================
   common.css — общие стили для всех страниц mxander.ru
   ================================================================ */

/* ---------- CSS-переменные ---------- */
:root {
    --bg-primary: #0F102E;
    --bg-dark: #1a1a2e;
    --accent: #00D0FF;
    --accent-green: #4dff91;
    --accent-red: #ff7070;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.55);
    --glass-bg: rgba(15, 16, 46, 0.55);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-strong: rgba(255, 255, 255, 0.08);
    --card-radius: 14px;
    --font-family: Arial, Helvetica, sans-serif;
    --sidebar-width: 290px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 208, 255, 0.25) rgba(15, 16, 46, 0.3);
}

body {
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 16.5pt;
    font-weight: normal;
    line-height: 1.75;
    letter-spacing: 1px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.75em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.1em; }
h4 { font-size: 1em; }
p  { margin-bottom: 1em; }
strong, b { color: var(--text-primary); font-weight: 700; }
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
ul { list-style: none; }

/* ---------- Webkit scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(15, 16, 46, 0.3); }
::-webkit-scrollbar-thumb {
    background: rgba(0, 208, 255, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 208, 255, 0.5);
}

/* ---------- Fluid cursor background ---------- */
#fluid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(100, 100, 255, 0.1) 0%, rgba(50, 50, 150, 0.1) 20%, transparent 80%);
    z-index: -1;
}

/* ---------- Glass card base ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--card-radius);
}

/* ---------- Button base ---------- */
.button {
    display: inline-block;
    padding: 0 1.5em;
    height: 2.75em;
    line-height: 2.75em;
    border-radius: 0.375em;
    font-weight: 600;
    font-size: 0.9em;
    border: solid 1px rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}
.button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}
.button.primary:hover {
    background: rgba(0, 208, 255, 0.8);
    border-color: rgba(0, 208, 255, 0.8);
    box-shadow: 0 0 24px rgba(0, 208, 255, 0.4);
}

/* ---------- Actions list ---------- */
ul.actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
}
ul.actions li { flex: 0 1 auto; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }

/* ---------- Responsive: tablet and down ---------- */
@media screen and (max-width: 1280px) {
    body { font-size: 12pt; }
}
@media screen and (max-width: 736px) {
    body { font-size: 11pt; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.25em; }
}

/* ---------- Responsive: large screens (2K / 4K) ---------- */
@media screen and (min-width: 1920px) {
    body { font-size: 18pt; }
}
@media screen and (min-width: 2560px) {
    body { font-size: 20pt; }
}
@media screen and (min-width: 3840px) {
    body { font-size: 24pt; }
}
