/**
 * Стили для хедера темы Visaver
 */

section {
    padding: 96px 0;
}

ul {
    margin: 0;
}

.notification-block {
    background-color: #ff2200a1;
    padding: 8px;
    width: 100%;
}

.notification-content {
    display: flex;
    max-width: 700px;
    margin: auto;
    justify-content: center;
    gap: 8px;
}

.notification-arrow {
    max-width: 16px;
}

.notification-text {

}

.notification-link {

}

.section-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    font-size: 18px;
    line-height: 28px;
    color: rgb(233, 213, 255);
    text-align: center;
    user-select: none;
}

/* Основные стили хедера */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    height: 104px;
    display: flex;
    align-items: center;
    background: transparent;
}

.blog-site-header {
    background: radial-gradient(98.8% 98.8% at 50% 1.2%, #09090A 0%, #15151A 100%);

    p {
        margin-top: 0;
    }
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    
    img {
        position: relative;
        top: 5px;
    }
}

.site-header,
.blog-site-header {
    flex-direction: column;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: padding 0.3s ease;
}

/* Стили для логотипа */
.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    transition: opacity 0.3s ease;
    width: 147px;
    height: 32px;
}

.logo-link:hover {
    opacity: 0.9;
}

.site-logo {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: height 0.3s ease;
}

/* Стили для навигации */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 36px;
}

.menu li > a {
    position: relative;
    align-items: center;
    display: flex;
    gap: 4px;
    color: #F5F5FA;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

/* Стили для выпадающего меню */
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 10, 43, 0.95);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .sub-menu li {
    margin: 0;
}

.menu .sub-menu a {
    padding: 8px 20px;
    font-size: 14px;
}

.menu .sub-menu a::after {
    display: none;
}

/* Выпадающее меню пользователя */
.user-menu-dropdown {
    position: relative;
}

.user-menu-toggle {
    cursor: pointer;
}

.user-menu-toggle.active {
    background: linear-gradient(270deg, #B8A1E6 0%, #4785FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.dropdown-arrow {
    color: #F5F5FA;
    transition: transform 0.2s ease;
}

.user-menu-toggle.active .dropdown-arrow {
    transform: rotate(-180deg);
    color: #B4A0E6;
}

/* Выпадающее содержимое */
.user-menu-dropdown-content {
    cursor: pointer;
    position: absolute;
    top: 100%;
    right: -185%;
    background: #15151ACC;
    backdrop-filter: blur(32px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 22px;
    border-radius: 20px;
    border: 2px solid #4785ff36;
    padding: 24px;
    min-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-menu-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown-item {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;

    h3 {
        color: #F5F5FA;
        font-weight: 500;
        font-size: 20px;
        line-height: 120%;
    }

    p {
        color: #B4B4CC;
        font-weight: 400;
        font-size: 16px;
        line-height: 140%;
    }
}

.user-menu-dropdown-item:hover {
    opacity: 1;
    cursor: pointer !important;

    h3 {
        background: linear-gradient(270deg, #B8A1E6 0%, #4785FF 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
}

.user-menu-list {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
}

.user-menu-item {
    padding: 8px 24px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 40px;
    max-width: 98px;
}

.user-menu-item:last-child {
    background-color: #D8D8EBE5;
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 154px;
}

.user-menu-link {
    color: #f5f5fa;
    font-size: 18px;
    text-decoration: none;
}

.menu-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.menu-item-icon svg {
    width: 100%;
    height: 100%;
    stroke: #E4E4FF;
}

.menu-item-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 132%;
    color: #F5F5FA;
}

/* Мобильное бургер меню */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.burger-icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

/* Отдельное мобильное меню */
.mobile-menu {
    position: fixed;
    top: 56px;
    right: -250px;
    width: 250px;
    background: linear-gradient(180deg, #222229, rgba(29, 29, 36));
    backdrop-filter: blur(10px);
    border-radius: 20px 0 0 20px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px 0;
}

.mobile-menu.mobile-menu-open {
    right: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    margin: 0;
}

.mobile-menu-item a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 0;
}

.mobile-menu-item a:hover,
.mobile-menu-item.current-menu-item a {
    background-color: rgba(216, 180, 254, 0.2);
}

/* Overlay для закрытия меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 50px;
        line-height: 50px;
    }
}

/* Показываем бургер и скрываем десктопное меню на мобильных */
@media (max-width: 1210px) {
    .hero-title {
        font-size: 30px;
        line-height: 36px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .user-menu-list {
        display: none;
    }

    /* Скрываем выпадающее меню пользователя на мобильных */
    .user-menu-dropdown {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }
}

/* Скрываем бургер и мобильное меню на десктопе */
@media (min-width: 1211px) {
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}


