/* ============================================================
   CYBER//TYPE — Theme Foundation
   Общие переменные, шрифты, фон, сканлайны, сетка, контейнер
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Core palette */
    --primary: #00ffc8;
    --secondary: #ff0064;
    --bg-dark: #0a0a0f;
    --bg-mid: #0f0a15;
    --success: #00ff00;
    --warning: #ffcc00;

    /* Neural statuses */
    --mastery: #bf00ff;
    --stable: #00ff00;
    --learning: #ffcc00;
    --weak: #ff0044;
    --unknown: #333333;

    /* Surfaces */
    --bg-card: #12121a;
    --border: rgba(0, 255, 200, 0.2);
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, #150a10 100%);
    font-family: 'Share Tech Mono', monospace;
    color: var(--primary);
    overflow-x: hidden;
}

/* Scanlines overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Grid background */
.grid-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animated grid (used in CyberType) */
.grid-bg.animated {
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0%   { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.5;
}

@keyframes float {
    0%   { transform: translateY(100vh); opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Decorative corners */
.corner {
    position: fixed;
    width: 100px; height: 100px;
    pointer-events: none;
    z-index: 50;
}
.corner::before, .corner::after {
    content: '';
    position: absolute;
    background: var(--primary);
}
.corner-tl { top: 20px; left: 20px; }
.corner-tl::before { width: 50px; height: 2px; }
.corner-tl::after { width: 2px; height: 50px; }
.corner-tr { top: 20px; right: 20px; }
.corner-tr::before { width: 50px; height: 2px; right: 0; }
.corner-tr::after { width: 2px; height: 50px; right: 0; }
.corner-bl { bottom: 20px; left: 20px; }
.corner-bl::before { width: 50px; height: 2px; bottom: 0; }
.corner-bl::after { width: 2px; height: 50px; bottom: 0; }
.corner-br { bottom: 20px; right: 20px; }
.corner-br::before { width: 50px; height: 2px; right: 0; bottom: 0; }
.corner-br::after { width: 2px; height: 50px; right: 0; bottom: 0; }

/* System info labels */
.sys-info {
    position: fixed;
    font-size: 10px;
    color: var(--primary);
    opacity: 0.5;
    z-index: 50;
}
.sys-info-tl { top: 75px; left: 25px; }
.sys-info-tr { top: 75px; right: 25px; }
.sys-info-bl { bottom: 75px; left: 25px; }
.sys-info-br { bottom: 75px; right: 25px; }

/* Orbitron heading helper */
.font-display {
    font-family: 'Orbitron', sans-serif;
}

/* ==================== BRANDING ==================== */
.site-brand {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--primary);
    text-shadow:
        0 0 7px var(--primary),
        0 0 20px var(--primary),
        0 0 40px rgba(0, 255, 200, 0.4),
        0 0 80px rgba(0, 255, 200, 0.2);
    animation: brandPulse 3s ease-in-out infinite;
}

.site-brand::before {
    content: '[ ';
    color: rgba(0, 255, 200, 0.3);
    text-shadow: none;
}

.site-brand::after {
    content: ' ]';
    color: rgba(0, 255, 200, 0.3);
    text-shadow: none;
}

@keyframes brandPulse {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 7px var(--primary), 0 0 20px var(--primary), 0 0 40px rgba(0, 255, 200, 0.4); }
    50%      { opacity: 1;   text-shadow: 0 0 10px var(--primary), 0 0 30px var(--primary), 0 0 60px rgba(0, 255, 200, 0.5), 0 0 100px rgba(0, 255, 200, 0.2); }
}
