/* =========================================
   1. CORE & UTILITIES
   ========================================= */
body {
    background-color: #050505;
    color: #e2e8f0;
    overflow-x: hidden;
    /* Шрифт Inter для основного текста */
    font-family: 'Inter', sans-serif; 
}

/* Скрытие полосы прокрутки (для мобильного крипто-бара) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Стекло (Glassmorphism) */
.glass-nav {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.6) 0%, rgba(10, 10, 12, 0.8) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Градиентный текст */
.text-gradient {
    background: linear-gradient(135deg, #00FFA3 0%, #00F0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   2. ANIMATIONS
   ========================================= */

/* Пульсация логотипа */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 163, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 163, 0); }
}
.logo-pulse { animation: pulse-glow 2s infinite; }

/* Плавающие элементы фона */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating-element { animation: float 6s ease-in-out infinite; }

/* =========================================
   3. NAVIGATION (CRITICAL FIXES)
   ========================================= */

/* Главное меню (Desktop) - Принудительно в строку */
ul.nav-desktop {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important; /* Отступ между ссылками */
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.nav-desktop li {
    display: block !important;
    margin: 0 !important;
}

ul.nav-desktop li a {
    font-family: 'Space Grotesk', sans-serif;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem; /* Размер шрифта меню */
    letter-spacing: 0.05em;
    position: relative;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Анимация подчеркивания при наведении */
ul.nav-desktop li a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(0,255,163,0.5);
}
ul.nav-desktop li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #00FFA3; /* Неоновый цвет */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #00FFA3;
}
ul.nav-desktop li a:hover::after {
    width: 100%;
    left: 0;
}

/* Меню в Футере - Принудительно в строку */
footer ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
footer ul li {
    display: inline-block !important;
}

/* =========================================
   4. MOBILE MENU & BURGER
   ========================================= */

/* Полноэкранная шторка */
.mobile-overlay {
    background: rgba(5, 5, 5, 0.98); /* Почти черный фон */
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Анимация появления пунктов */
.mobile-nav li { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.5s ease; 
}
.mobile-overlay.open .mobile-nav li { 
    opacity: 1; 
    transform: translateY(0); 
}
/* Каскадная задержка для пунктов */
.mobile-overlay.open .mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-overlay.open .mobile-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-overlay.open .mobile-nav li:nth-child(4) { transition-delay: 0.4s; }

/* Ссылки в мобильном меню */
.mobile-nav li a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.mobile-nav li a:hover { color: #00FFA3; }

/* Иконка Бургера */
.burger-line {
    transition: all 0.3s ease;
    transform-origin: center;
}
/* Превращение в крестик */
.menu-open .line-1 { transform: translateY(7px) rotate(45deg); }
.menu-open .line-2 { opacity: 0; }
.menu-open .line-3 { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   5. POST CONTENT STYLING (Typography)
   ========================================= */
.gh-content { font-size: 1.1rem; line-height: 1.7; color: #cbd5e1; }

/* Заголовки внутри статей */
.gh-content h2, .gh-content h3 { 
    color: white; 
    margin-top: 2.5em; 
    margin-bottom: 0.8em; 
    font-weight: 700; 
    font-family: 'Space Grotesk', sans-serif; 
    line-height: 1.2;
}
.gh-content h2 { font-size: 2rem; }
.gh-content h3 { font-size: 1.5rem; }

/* Ссылки внутри статей */
.gh-content a { 
    color: #00FFA3; 
    text-decoration: underline; 
    text-underline-offset: 4px; 
    transition: color 0.2s;
}
.gh-content a:hover { color: white; }

/* Картинки внутри статей */
.gh-content img { 
    border-radius: 12px; 
    margin: 2em 0; 
    width: 100%; 
    height: auto; 
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

/* Цитаты */
.gh-content blockquote { 
    border-left: 4px solid #00FFA3; 
    margin: 2em 0;
    padding: 1em 1.5em; 
    font-style: italic; 
    color: #fff; 
    background: rgba(255,255,255,0.03); 
    border-radius: 0 12px 12px 0; 
}

/* Списки */
.gh-content ul { list-style: disc; margin-left: 1.5em; margin-bottom: 1.5em; }
.gh-content ol { list-style: decimal; margin-left: 1.5em; margin-bottom: 1.5em; }
.gh-content li { margin-bottom: 0.5em; padding-left: 0.5em; }

/* =========================================
   6. GHOST EDITOR REQUIREMENTS (Validations)
   ========================================= */
/* Эти классы обязательны, чтобы Ghost не ругался на тему */

/* Картинки "Wide" (Широкие) */
.gh-content .kg-width-wide { 
    position: relative; 
    width: 85vw; 
    left: 50%; 
    right: 50%; 
    margin-left: -42.5vw; 
    margin-right: -42.5vw; 
}

/* Картинки "Full" (На весь экран) */
.gh-content .kg-width-full { 
    position: relative; 
    width: 100vw; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
}

/* Центрирование подписей и картинок */
.gh-content figure { margin: 2.5em 0; }
.gh-content figure img { margin: 0 auto; display: block; }
.gh-content figcaption { 
    text-align: center; 
    color: #64748b; 
    font-size: 0.9rem; 
    margin-top: 0.8rem; 
    font-family: 'Inter', sans-serif;
}

/* Галереи */
.kg-gallery-container { display: flex; flex-direction: column; max-width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }

/* Видео и вставки */
.kg-video-card, .kg-embed-card { margin-bottom: 2rem; width: 100%; }