@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&display=swap');

/* =========================================
   Общие настройки и фон
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Fira Code", "Courier New", Courier, monospace;
    background: #020b06;
    color: #e2e8f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 130px 20px 40px;
}

/* Эффекты фонового свечения */
.bg-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.4;
}
.glow-top-left {
    top: -20vw;
    left: -20vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}
.glow-bottom-right {
    bottom: -20vw;
    right: -20vw;
    background: radial-gradient(circle, rgba(6, 95, 70, 0.2) 0%, transparent 70%);
}

.container {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* =========================================
   Навигация (Меню)
   ========================================= */
.top-navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.05);
    z-index: 1000;
}
.nav-brand a {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    transition: text-shadow 0.3s;
}
.nav-brand a:hover { text-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: #10b981;
    transition: width 0.3s ease; box-shadow: 0 0 8px #10b981;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .top-navbar { justify-content: center; padding: 14px 25px; }
}

/* =========================================
   Стили для статьи
   ========================================= */
.article-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 50px 50px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .article-card { padding: 30px 25px; }
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    padding-bottom: 20px;
}
.article-meta {
    font-size: 13px; color: #10b981; margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.terminal-prompt { font-weight: bold; }
.article-title {
    font-size: 32px; font-weight: 700; color: #ffffff;
    line-height: 1.3; letter-spacing: -1px; margin-bottom: 15px;
}

.article-content { font-size: 15px; line-height: 1.8; color: #cbd5e1; }
.article-content h2 { font-size: 22px; color: #34d399; margin: 35px 0 15px; font-weight: 600; }
.article-content h3 { font-size: 18px; color: #ffffff; margin: 25px 0 10px; font-weight: 600; }
.article-content p { margin-bottom: 20px; }
.article-content ul { margin-bottom: 25px; padding-left: 20px; list-style-type: none; }
.article-content li { margin-bottom: 10px; position: relative; }
.article-content li::before {
    content: ">>"; position: absolute; left: -25px;
    color: #10b981; font-weight: bold;
}

/* Красивое оформление скриншотов */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.highlight-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #10b981;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 30px 0;
    font-style: italic;
    color: #94a3b8;
}
.code-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13.5px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.site-footer {
    margin-top: 30px; font-size: 13px; color: #475569; text-align: center;
}