/* === ASTRA CRAFT — Mission Control Dashboard ===
   Палитра: глубокий тёмно-синий фон + неон циан/синий/фиолетовый.
   Шрифт везде — JetBrains Mono (эффект показаний бортового компьютера станции). */

:root {
    --bg-color: #020613;
    --surface-color: #0a1122;
    --surface-hover: #101a33;
    --surface-sunken: #050a17;

    --neon-cyan: #00f0ff;
    --neon-blue: #2f5bff;
    --neon-violet: #7c5cff;

    --success: #00e08a;
    --danger: #ff4d6d;

    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --border-soft: rgba(0, 240, 255, 0.08);

    --radius: 6px;
    --font-display: 'JetBrains Mono', ui-monospace, monospace;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-display); font-weight: 500; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 40px 20px 80px;
    background-image:
        radial-gradient(circle, rgba(47, 91, 255, 0.11) 0%, transparent 55%),
        radial-gradient(circle, rgba(124, 92, 255, 0.08) 0%, transparent 50%),
        linear-gradient(rgba(0, 240, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.045) 1px, transparent 1px);
    background-size: 180% 180%, 220% 220%, 42px 42px, 42px 42px;
    background-position: 20% 10%, 80% 90%, 0 0, 0 0;
    min-height: 100vh;
    animation: bg-drift 70s ease-in-out infinite;
}

a { color: inherit; }

::selection { background: var(--neon-blue); color: #fff; }

:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* === АНИМАЦИИ === */
@keyframes pulse-neon {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fill-bar {
    from { width: 0; }
}
@keyframes bg-drift {
    0%   { background-position: 20% 10%, 80% 90%, 0 0, 0 0; }
    50%  { background-position: 65% 65%, 25% 30%, 260px 260px, 260px 0; }
    100% { background-position: 20% 10%, 80% 90%, 520px 520px, 520px 0; }
}

/* === ШАПКА === */
.header { text-align: center; margin-bottom: 50px; animation: fade-up 0.5s ease; }
.header .eyebrow {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5), 0 0 20px rgba(47, 91, 255, 0.8), 0 4px 0 rgba(0,0,0,0.9);
}
.header p { color: var(--neon-cyan); font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; opacity: 0.85; margin-top: 6px; }

.mode-switch { text-align: center; margin-bottom: 30px; }
.mode-switch a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-soft);
    padding: 6px 14px;
    border-radius: 20px;
}
.mode-switch a:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }

/* === СЕТКА ВИДЖЕТОВ (режим сезона) === */
.container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.widget {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    animation: fade-up 0.5s ease backwards;
}
.widget::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
}
.widget:hover {
    background-color: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(47, 91, 255, 0.2);
    border-color: rgba(0, 240, 255, 0.2);
}
.widget h3 {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: #fff;
    text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
}
.widget-large { grid-column: span 2; }

/* === КНОПКИ === */
.btn {
    display: block;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan), var(--neon-blue));
    background-size: 200% auto;
    color: #fff; padding: 12px 20px; border-radius: 4px; text-decoration: none;
    font-weight: 700; font-size: 1.05rem; text-align: center; text-transform: uppercase;
    letter-spacing: 1px; border: none; cursor: pointer; margin-top: 20px;
    box-shadow: 0 4px 15px rgba(47, 91, 255, 0.3); animation: gradient-shift 3s linear infinite;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5); animation-duration: 1.5s; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; }
.btn-secondary { background: #1e3a8a; background-size: 100%; animation: none; box-shadow: none; border: 1px solid #2563eb; }
.btn-ghost { background: transparent; border: 1px solid var(--border-soft); color: var(--text-muted); animation: none; box-shadow: none; }
.btn-ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.btn-danger { background: linear-gradient(90deg, #b3123a, #ff4d6d); animation: none; }

/* === СТАТУС СЕРВЕРА === */
.online-box { text-align: center; padding: 10px 0 20px; position: relative; }
.live-dot { display: inline-block; width: 11px; height: 11px; background: var(--neon-cyan); border-radius: 50%; margin-right: 8px; animation: pulse-neon 2s infinite; vertical-align: middle; }
.live-dot.offline { background: var(--danger); animation: none; }
.online-count {
    font-family: var(--font-mono); font-size: 3.6rem; font-weight: 700; line-height: 1; margin-top: 10px;
    background: linear-gradient(to right, var(--neon-cyan), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.ip-box {
    background: var(--surface-sunken); padding: 15px; border-radius: 4px; font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 700; color: var(--neon-cyan); cursor: pointer; text-align: center;
    border: 1px dashed rgba(0, 240, 255, 0.2);
}
.ip-box:hover { background: rgba(0, 240, 255, 0.05); border: 1px solid var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

.top-list { list-style: none; }
.top-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; background: rgba(0,0,0,0.4); margin-bottom: 8px; border-radius: 4px; border-left: 2px solid transparent; }
.top-list li:hover { background: rgba(0, 240, 255, 0.05); border-left: 2px solid var(--neon-cyan); }
.top-list li span:last-child { color: var(--neon-cyan); font-weight: 700; font-family: var(--font-mono); }

.news-item { margin-bottom: 25px; }
.news-item h4 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; }
.news-item p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.news-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--neon-blue); margin-bottom: 5px; display: block; font-weight: 700; text-transform: uppercase; }

.mods-list-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; text-decoration: none; }
.mods-list-link:hover { color: var(--neon-cyan); }

/* === ПРЕДСЕЗОН: карточка-центр === */
.stage {
    max-width: 560px; margin: 0 auto; background: var(--surface-color); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden; animation: fade-up 0.5s ease;
}
.stage::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan)); }
.stage h2 { color: #fff; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.stage .lede { color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.field input[type="text"], .field input[type="email"] {
    width: 100%; background: var(--surface-sunken); border: 1px solid var(--border-soft); border-radius: 4px;
    padding: 13px 14px; color: #fff; font-size: 1rem; font-family: var(--font-mono);
}
.field input:focus { border-color: var(--neon-cyan); }
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.field .hint.ok { color: var(--success); }
.field .hint.err { color: var(--danger); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-row input { margin-top: 4px; accent-color: var(--neon-cyan); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-row label { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.checkbox-row a { color: var(--neon-cyan); text-decoration: underline; }

.alert { padding: 14px 16px; border-radius: 4px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert-error { background: rgba(255, 77, 109, 0.08); border-color: rgba(255, 77, 109, 0.35); color: #ffb3c1; }
.alert-ok { background: rgba(0, 224, 138, 0.08); border-color: rgba(0, 224, 138, 0.35); color: #8ff5cf; }
.alert-info { background: rgba(0, 240, 255, 0.06); border-color: rgba(0, 240, 255, 0.25); color: #b7f7ff; }

.status-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-soft); }
.status-badge.pending { color: #ffd166; border-color: rgba(255, 209, 102, 0.4); }
.status-badge.approved { color: var(--success); border-color: rgba(0, 224, 138, 0.4); }
.status-badge.rejected { color: var(--danger); border-color: rgba(255, 77, 109, 0.4); }

/* === ТЕСТ ПО СБОРКЕ === */
.quiz-question-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.quiz-question-text { color: #fff; font-size: 1.25rem; line-height: 1.5; flex: 1; }
.quiz-question-image { width: 180px; flex-shrink: 0; border-radius: 4px; border: 1px solid var(--border-soft); object-fit: cover; max-height: 180px; }
@media (max-width: 600px) {
    .quiz-question-header { flex-direction: column; }
    .quiz-question-image { width: 100%; max-height: 200px; }
}

.vote-option {
    display: block; margin-bottom: 12px; cursor: pointer; padding: 14px 16px;
    background: var(--surface-sunken); border: 1px solid var(--border-soft); border-radius: 4px;
}
.vote-option:hover { border-color: rgba(0, 240, 255, 0.3); }
.vote-option.disabled { cursor: not-allowed; opacity: 0.6; }
.vote-option-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.vote-option.selected { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.06); }
.vote-option.selected .vote-option-top { color: var(--neon-cyan); }
.vote-option input { display: none; }
.vote-option-image { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border-soft); flex-shrink: 0; }
.vote-option.exclusive { border-style: dashed; }
.vote-option-divider {
    text-align: center; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 2px; margin: 4px 0 12px; position: relative;
}

/* === ГАЙДЫ === */
.guide-content { color: var(--text-main); line-height: 1.7; font-size: 1rem; }
.guide-content h3, .guide-content h4, .guide-content h5, .guide-content h6 { color: #fff; margin: 24px 0 10px; }
.guide-content p { margin-bottom: 14px; }
.guide-content ul, .guide-content ol { margin: 0 0 14px 22px; }
.guide-content li { margin-bottom: 6px; }
.guide-content a { color: var(--neon-cyan); }
.guide-content code { font-family: var(--font-mono); background: var(--surface-sunken); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.guide-content pre { background: var(--surface-sunken); border: 1px solid var(--border-soft); border-radius: 4px; padding: 16px; overflow-x: auto; margin-bottom: 14px; }
.guide-content pre code { background: none; padding: 0; }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .container { grid-template-columns: repeat(2, 1fr); }
    .widget-large { grid-column: span 2; }
    .header h1 { font-size: 3.2rem; }
}
@media (max-width: 600px) {
    .container { grid-template-columns: 1fr; }
    .widget-large { grid-column: span 1; }
    .header h1 { font-size: 2.3rem; }
    .stage { padding: 26px; }
}
