/**
 * Arsenal Project - Стили для основного меню сайта
 */

/* Стили для навигационной панели */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 60, 60, 0.2);
}

.main-nav.nav-scrolled {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ff3c3c, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 60, 60, 0.3);
}

.brand-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(255, 60, 60, 0.6));
    transition: all 0.3s ease;
}

.brand:hover .brand-logo {
    transform: rotate(10deg) scale(1.1);
}

.brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 25px rgba(255, 60, 60, 0.5);
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 28px 16px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff3c3c, #ff8f00);
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 60, 60, 0.5);
}

.menu-link:hover {
    color: #ffffff;
}

.menu-link:hover::after, 
.menu-link.active::after {
    width: calc(100% - 32px);
}

.menu-link.active {
    color: #ffffff;
    font-weight: 700;
}

.menu-link i {
    margin-right: 5px;
    font-size: 14px;
    position: relative;
    top: 1px;
}

.menu-link .new-badge {
    position: absolute;
    top: 18px;
    right: 0;
    background: linear-gradient(135deg, #ff3c3c, #ff8f00);
    color: white;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 60, 60, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 60, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 60, 60, 0);
    }
}

/* Подменю */
.has-submenu {
    position: relative;
}

.has-submenu > a::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.has-submenu:hover > a::before {
    transform: translateY(-50%) rotate(180deg);
    color: rgba(255, 255, 255, 1);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 60, 60, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px;
    z-index: 1001;
    margin-top: 5px;
    border: 1px solid rgba(255, 60, 60, 0.1);
    overflow: hidden;
}

.submenu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 30px;
    width: 10px;
    height: 10px;
    background: rgba(15, 15, 15, 0.95);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 60, 60, 0.1);
    border-left: 1px solid rgba(255, 60, 60, 0.1);
    z-index: -1;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.submenu a:hover {
    background: rgba(255, 60, 60, 0.15);
    color: #ffffff;
    transform: translateX(5px);
}

.submenu a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 60, 60, 0.9);
}

.submenu-category {
    padding: 8px 15px;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
}

/* Выделенный пункт меню */
.menu-link.highlight {
    background: linear-gradient(135deg, #ff3c3c, #ff8f00);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-left: 15px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 60, 60, 0.3);
    border: none;
    transition: all 0.3s ease, transform 0.2s ease;
}

.menu-link.highlight::after {
    content: '';
    position: absolute;
    top: -180%;
    left: -40%;
    width: 30%;
    height: 350%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-link.highlight:hover {
    background: linear-gradient(135deg, #ff5252, #ff9e35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 60, 60, 0.4);
}

.menu-link.highlight:hover::after {
    left: 120%;
}

.menu-link.highlight i {
    margin-right: 5px;
}

/* Мобильное меню */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 100px 30px 30px;
    max-width: 450px;
    margin: 0 auto;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 10px;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav > li > a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: rgba(255, 60, 60, 0.15);
}

.mobile-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: rgba(255, 60, 60, 0.9);
}

.mobile-nav .has-submenu > a {
    position: relative;
}

.mobile-nav .has-submenu > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.mobile-nav .has-submenu.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.mobile-nav .has-submenu.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu a {
    padding: 12px 20px 12px 40px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.85);
}

.mobile-submenu-category {
    padding: 10px 20px 5px 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-social {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.mobile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: linear-gradient(135deg, #ff3c3c, #ff8f00);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 60, 60, 0.3);
}

.highlight {
    position: relative;
    overflow: hidden;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .menu-link {
        padding: 28px 12px;
        font-size: 13px;
    }
    
    .menu-link::after {
        left: 12px;
    }
    
    .menu-link:hover::after, 
    .menu-link.active::after {
        width: calc(100% - 24px);
    }
}

@media (max-width: 992px) {
    .menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .brand::before {
        left: -35px;
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 20px;
    }
    
    .brand::before {
        left: -30px;
        width: 22px;
        height: 22px;
    }
    
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }
}

/* Дополнительные анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.slideInDown {
    animation: slideInDown 0.5s ease forwards;
}

.slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

/* Добавляем стили для предотвращения прокрутки при открытом меню */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
} 