/* ==========================================================================
   GLOBAL.CSS — ПОЛНЫЙ ФИНАЛЬНЫЙ СТИЛЬ КОМПЛЕКСА FAZARPROJECT (ВЕРСИЯ 2.0)
   ========================================================================== */

:root {
    --bg-main: #050608;             /* Глубокий черный фон */
    --bg-card: #0c0f16;             /* Темная оружейная сталь */
    --bg-card-hover: #121722;       /* Мягкий неоново-черный */
    --blue: #3399FF;                /* Акцентный небесно-синий неон */
    --blue-glow: rgba(51, 153, 255, 0.4);
    --gold: #FFD700;                /* Золотой донатный цвет */
    --text-white: #f5f7fa;          /* Основной светлый текст */
    --text-gray: #718096;           /* Второстепенный серый текст */
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Холст для живого интерактивного фона из магических частиц */
#rpg-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Глубокий радиальный фэнтези-градиент вместо однотонного черного */
body {
    background: radial-gradient(circle at 50% 30%, #0c121f 0%, #050608 70%);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ==========================================================================
   ИСПРАВЛЕННАЯ ТРЕХКОЛОНОЧНАЯ ПАРЯЩАЯ ШАПКА — ЖЕСТКАЯ ГЕОМЕТРИЯ С ЦЕНТРОМ
   ========================================================================== */

.navbar {
    position: fixed !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 1100px !important; /* Общая длина самой капсулы */
    background: rgba(12, 15, 22, 0.65) !important;
    border: 1px solid rgba(51, 153, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 10px 0 !important; /* Сброшен боковой padding под отступы гридов */
    z-index: 5000 !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
}

/* Режим жесткой трехколоночной сетки Grid (Фиксирует боковые зоны по 200px) */
.nav-container {
    display: grid !important;
    /* Увеличили боковые колонки до 230px, оставив центру весь свободный флекс-объем */
    grid-template-columns: 230px 1fr 230px !important; 
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Логотип (Сдвинут к центру от левого края стекла) */
.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--blue-glow);
    cursor: pointer;
    user-select: none;
    text-align: left !important;
    margin-left: 45px !important; /* Силовой зазор от левого края скругления */
}
.logo span { color: var(--blue); }

/* Центральное навигационное меню */
.nav-links {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
    align-items: center !important;
    justify-content: center !important; /* Строго по центру шапки */
}

.nav-item {
    position: relative;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    display: block;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-item.active-nav a {
    color: var(--blue);
    text-shadow: 0 0 10px var(--blue-glow);
}

/* Неоновый маркер под активной ссылкой */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--blue);
    box-shadow: 0 0 8px var(--blue);
    transition: width 0.3s ease;
}
.nav-item.active-nav::after,
.nav-item:hover::after {
    width: 60%;
}

/* Правый виджет (Сдвинут к центру от правого края стекла) */
.nav-right-widget {
    display: flex !important;
    justify-content: flex-end !important;
    margin-right: 45px !important; /* Силовой зазор от правого края скругления */
}

/* [ПОЧИНЕНО] Жесткий запрет на перенос букв на вторую строчку */
.navbar-discord-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(88, 101, 242, 0.1) !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    color: #5865F2 !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: 0.3s ease !important;
    white-space: nowrap !important; /* НАМЕРТВО ЗАПРЕЩАЕТ ТЕКСТУ ПЕРЕНОСИТЬСЯ ПОД НИЗ */
}
/* Настройки встроенной SVG иконки Discord */
.svg-discord-icon {
    width: 18px;
    height: 18px;
    fill: currentColor; /* Заставляет иконку принимать цвет текста (синий, а при наведении — белый) */
    display: inline-block;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

.navbar-discord-btn:hover {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5) !important;
    transform: translateY(-1px) !important;
}

.navbar-discord-btn i {
    font-size: 16px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* ==========================================================================
   КОНТЕНТНЫЕ СЕКЦИИ И КНОПКИ
   ========================================================================== */

.section-container {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.alt-bg {
    background: #080a0f;
    max-width: 100%;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.section-title {
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.section-desc {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 60px auto !important;
    text-align: center !important;
    display: block !important;
}

.btn {
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-blue {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 20px rgba(51,153,255,0.3);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(51,153,255,0.5);
}

/* ==========================================================================
   ПОДВАЛ САЙТА (FOOTER)
   ========================================================================== */

.footer {
    background: #030405;
    padding: 50px 20px;
    font-size: 14px;
    color: var(--text-gray);
    border-top: 1px solid rgba(255,255,255,0.01);
    text-align: center;
}

.footer-socials {
    margin-bottom: 20px;
}

.footer-socials a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 18px;
    font-size: 16px;
    font-weight: 600;
}

.footer-docs {
    margin: 20px 0;
}

.footer-docs a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 10px;
}

.footer-docs a:hover {
    color: white;
}

.support {
    font-size: 13px;
    color: #4a5568;
    margin-top: 15px;
}

/* Цветовые RPG-маркеры состояний */
.good-stat { color: #2ecc71; font-weight: 700; }
.bad-stat { color: #ef4444; font-weight: 700; }
.warning-text { color: #ef4444; font-weight: 600; }
.no-debuff { color: #a0aec0; font-style: italic; }

/* ==========================================================================
   АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================== */

@media (max-width: 992px) {
    .navbar {
        width: 95% !important;
        border-radius: 20px !important;
        top: 10px !important;
        padding: 12px 20px !important;
    }
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
    }
    .burger-menu { display: block !important; }
    .nav-right-widget { display: none !important; } /* Скрываем Дискорд на смартфонах ради экономии места */
    
    .nav-links {
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(12, 15, 22, 0.98); 
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
        border-radius: 0 0 20px 20px;
        border-top: 1px solid rgba(51, 153, 255, 0.1);
    }
    .nav-links.mobile-open { display: flex !important; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { padding: 15px; }
    .nav-item::after { display: none !important; }
    .logo { margin-left: 0 !important; }
}
/* [НОВОЕ] Стилизация центрального блока шапки: IP + Ссылки */
.nav-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.navbar-ip-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
    background: rgba(51, 153, 255, 0.08);
    border: 1px solid rgba(51, 153, 255, 0.15);
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* [НОВОЕ] Компактная строчная линия донат-порогов внутри инфо-панели */
.compact-ranks-line {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.rank-badge-inline {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: 6px;
}

.rank-badge-inline b {
    color: var(--gold);
}

/* Мобильная адаптация виджета IP */
@media (max-width: 992px) {
    .nav-center-block { width: auto; align-items: flex-start; }
    .navbar-ip-badge { display: none; } /* Прячем IP из шапки на телефонах, чтобы не захламлять экран */
}
