/* ===== ПУБЛИЧНАЯ НАВИГАЦИОННАЯ ПАНЕЛЬ ===== */


/* Основные стили навигации */

.navbar-public {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-public::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: -1;
}


/* Декоративные элементы */

.navbar-public::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* Брендинг */

.navbar-public .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.navbar-public .navbar-brand:hover {
    transform: scale(1.02);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.navbar-public .navbar-brand i {
    margin-right: 0.75rem;
    font-size: 2rem;
    background: linear-gradient(45deg, #ffeaa7, #fab1a0, #fd79a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Навигационные ссылки (если есть) */

.navbar-public .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin: 0 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.navbar-public .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s;
}

.navbar-public .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.navbar-public .nav-link:hover::before {
    left: 100%;
}

.navbar-public .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}


/* Кнопки действий */

.navbar-public .btn-primary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.navbar-public .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.navbar-public .btn-primary:hover {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.4);
}

.navbar-public .btn-primary:hover::before {
    left: 100%;
}

.navbar-public .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.navbar-public .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}


/* Тоггл для мобильных устройств */

.navbar-public .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.navbar-public .navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.navbar-public .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.navbar-public .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}


/* Контейнер навигации */

.navbar-public .container-fluid {
    position: relative;
    z-index: 10;
}


/* Анимация появления */

.navbar-public {
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Адаптивность */

@media (max-width: 768px) {
    .navbar-public {
        padding: 0.5rem 0;
    }
    .navbar-public .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-public .navbar-brand i {
        font-size: 1.75rem;
        margin-right: 0.5rem;
    }
    .navbar-public .nav-link {
        padding: 0.6rem 1.25rem;
        margin: 0.25rem 0;
        border-radius: 15px;
    }
    .navbar-public .btn-primary,
    .navbar-public .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }
    .navbar-public .btn-secondary {
        margin-left: 0;
    }
}


/* Эффекты при наведении на весь навбар */

.navbar-public:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}


/* Дополнительные декоративные элементы */

.navbar-public .navbar-nav {
    position: relative;
}

.navbar-public .navbar-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 20px;
}


/* Специальные эффекты для интерактивных элементов */

.navbar-public .nav-item:hover .nav-link {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* Плавные переходы для коллапса */

.navbar-public .navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-public .navbar-collapse.show {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-top: 1rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
}


/* Микро-анимации */

.navbar-public * {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}