/* ===== NAVIGATION FIX - OVERRIDE ALL OTHER STYLES ===== */
/* Цей файл має максимальний пріоритет для навігації */

/* ===== TITLE HIGHLIGHT FIX ===== */
/* Красивий стиль для виділених слів в заголовках */
.title-highlight {
    color: #00ff88 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5) !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
}

.title-highlight::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #06b6d4, #7c3aed);
    border-radius: 2px;
    opacity: 0.8;
    z-index: -1;
}

/* Альтернативний стиль з градієнтом */
.title-highlight-alt {
    background: linear-gradient(135deg, #00ff88 0%, #06b6d4 50%, #7c3aed 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Стиль з підкресленням */
.title-highlight-underline {
    color: #ffffff !important;
    font-weight: 900 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3) !important;
}

.title-highlight-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff88;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
}

/* Видаляємо всі псевдоелементи */
.nav-link::before,
.nav-link::after {
    display: none !important;
    content: none !important;
}

/* Простий hover ефект */
.nav-link:hover {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3) !important;
}

/* Активний стан */
.nav-link.active {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4) !important;
}

/* ===== МОБІЛЬНЕ МЕНЮ - ЯСКРАВИЙ ДИЗАЙН ===== */
.nav-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 40px !important;
    height: 30px !important;
    cursor: pointer !important;
    padding: 12px !important;
    background: linear-gradient(135deg, #00ff88, #06b6d4) !important;
    border: 2px solid #00ff88 !important;
    border-radius: 15px !important;
    z-index: 1001 !important;
    position: absolute !important;
    right: 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6) !important;
}

.nav-toggle:hover {
    background: linear-gradient(135deg, #00ff88, #7c3aed) !important;
    border-color: #00ff88 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.8) !important;
}

.nav-toggle span {
    width: 100% !important;
    height: 4px !important;
    background: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 3px !important;
    transform-origin: center !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.nav-toggle span:nth-child(1) {
    transform-origin: top left !important;
}

.nav-toggle span:nth-child(3) {
    transform-origin: bottom left !important;
}

/* Анімація при відкритті меню */
.nav-toggle.active {
    background: linear-gradient(135deg, #ff6b35, #7c3aed) !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.8) !important;
    transform: scale(1.05) !important;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px) !important;
    background: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    transform: scale(0) !important;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px) !important;
    background: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
}

/* Мобільне меню */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(26, 26, 46, 0.98)) !important;
        backdrop-filter: blur(25px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem !important;
        gap: 1.5rem !important;
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 999 !important;
        overflow-y: auto !important;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
    
    .nav-menu .nav-link {
        padding: 1.2rem 2rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 15px !important;
        display: block !important;
        text-align: center !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(0, 255, 136, 0.2) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-menu .nav-link:hover {
        transform: translateX(8px) scale(1.02) !important;
        background: rgba(0, 255, 136, 0.15) !important;
        border-color: rgba(0, 255, 136, 0.4) !important;
        box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2) !important;
    }
    
    .nav-menu .nav-link:hover::before {
        left: 100%;
    }
    
    /* Спеціальний стиль для кнопки Subscribe в мобільному меню */
    .nav-menu .subscribe-btn {
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(6, 182, 212, 0.2)) !important;
        border: 2px solid rgba(0, 255, 136, 0.5) !important;
        color: #00ff88 !important;
        padding: 1.2rem 2.5rem !important;
        margin: 1rem 0 !important;
        border-radius: 15px !important;
        font-weight: 700 !important;
        font-size: 1.1rem !important;
        text-align: center !important;
        display: block !important;
        text-decoration: none !important;
        backdrop-filter: blur(15px) !important;
        transition: all 0.3s ease !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3) !important;
    }
    
    .nav-menu .subscribe-btn:hover {
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(6, 182, 212, 0.3)) !important;
        border-color: #00ff88 !important;
        transform: translateY(-3px) scale(1.05) !important;
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4) !important;
        color: #ffffff !important;
    }
    
    .nav-menu .subscribe-btn:active {
        transform: translateY(-1px) scale(1.02) !important;
    }
    
    .nav-menu .subscribe-btn i {
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
    }
}

/* Додаткові покращення для малих екранів */
@media (max-width: 480px) {
    .nav-toggle {
        width: 30px !important;
        height: 22px !important;
        padding: 8px !important;
        right: 1rem !important;
    }
    
    .nav-menu .nav-link {
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
    }
    
    .nav-menu .subscribe-btn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}
