﻿




.nav-link {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

    .nav-link:hover {
        color: #fff;
    }

.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: #9ca3af;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .dropdown-toggle:hover {
        color: #fff;
    }



/* Для выпадающих элементов */
.dropdown-item.active {
    color: #f97316 !important;
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.6), 0 0 10px rgba(249, 115, 22, 0.4);
    background: rgba(15, 15, 15, 0.4) !important;
}

/* Мобильная версия */
.nav-link.active,
.dropdown-toggle.active,
.mobile-dropdown-item.active,
.mobile-nav-link.active,
.mobile-dropdown-toggle.active {
    color: #f97316 !important;
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.7), 0 0 15px rgba(249, 115, 22, 0.5);
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(25, 25, 25, 0.9);
    backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 50;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link.active,
    .dropdown-toggle.active {
        color: #f97316 !important;
        text-shadow: 
            0 0 8px rgba(249, 115, 22, 0.7),
            0 0 15px rgba(249, 115, 22, 0.5),
            0 0 20px rgba(249, 115, 22, 0.3);
        position: relative;
        z-index: 1;
    }
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }


.auth-buttons {
    display: flex;
    gap: 0.75rem;
    margin-left: 1.5rem;
}

.auth-btn {
    display: inline-flex;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background 0.2s, border 0.2s;
}

.login {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

    .login:hover {
        background: rgba(255, 255, 255, 0.05);
    }

.register {
    background: #f97316;
    color: #fff;
}

    .register:hover {
        background: #ea580c;
    }


.mobile-menu-btn {
    display: none;
    margin-left: auto;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
}

.mobile-menu-container {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    z-index: 100;
    transition: height 0.3s ease;
}

    .mobile-menu-container.open {
        height: calc(100vh - 64px);
    }

.mobile-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.menu-icon {
    height: 24px;
    width: 24px;
    stroke-width: 1.8;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 12px 0;
    font-size: 1rem;
    transition: color 0.2s;
}

    .mobile-nav-link:hover {
        color: #fff;
    }

.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .mobile-dropdown-toggle:hover {
        color: #fff;
    }

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.mobile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: flex;
}

.mobile-dropdown-item {
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

    .mobile-dropdown-item:hover {
        color: #fff;
    }


@media (max-width: 1024px) {
    .desktop-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}
.mobile-auth-btn {
    width: 100%;
    text-align: center;
    justify-content: center;

}

/* Опционально: адаптируйте отступы */
.mobile-auth-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.auth-btn.login {
    background: transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    /* Сброс стандартных стилей кнопки */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-family: inherit; /* чтобы шрифт совпадал */
}