/* ===== ПРОФЕССИОНАЛЬНОЕ МОДАЛЬНОЕ ОКНО ПРОФИЛЯ ===== */

/* Контейнер модального окна профиля - ТОЧНАЯ КОПИЯ btn-profile */
.profile-dropdown {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
    overflow: visible;
    background: rgba(255, 255, 255, 0.05);
    z-index: 99999999;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    min-width: 180px;
    max-width: 220px;
}

/* Состояние показа модального окна */
.profile-dropdown--visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, 0.1);
    z-index: 99999999 !important;
    position: absolute !important;
}

/* Обводка сверху синим цветом */
.profile-dropdown::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4A90E2 0%, #4A90E2 100%);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.profile-dropdown::before {
    display: none;
}

/* Эффекты при наведении убраны */

/* ===== КНОПКИ В МОДАЛЬНОМ ОКНЕ ===== */

/* Контейнер кнопок */
.profile-dropdown__actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Кнопка в модальном окне - упрощенная версия */
.profile-dropdown__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border: none;
    border-radius: 0;
    font-family: inherit;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
    width: 100%;
    text-align: center;
    position: relative;
}

/* Убраны все обводки и фоны */
.profile-dropdown__action::after,
.profile-dropdown__action::before {
    display: none;
}

/* Стиль для текста */
.profile-dropdown__action span {
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Эффект подсветки только на текст при наведении */
.profile-dropdown__action:hover span {
    color: #4A90E2;
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.6);
    transform: translateY(-1px);
}

/* Кнопка выхода - стиль для текста */
.profile-dropdown__action--logout {
    color: #ff6b6b;
}

.profile-dropdown__action--logout span {
    color: #ff6b6b;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-dropdown__action--logout:hover span {
    color: #ff5252;
    text-shadow: 0 0 8px rgba(255, 82, 82, 0.6);
    transform: translateY(-1px);
}

/* ===== АНИМАЦИИ ===== */

/* Анимация появления */
@keyframes profileDropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Анимация исчезновения */
@keyframes profileDropdownSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Применение анимаций */
.profile-dropdown--visible {
    animation: profileDropdownSlideIn 0.3s ease forwards;
}

.profile-dropdown--hiding {
    animation: profileDropdownSlideOut 0.3s ease forwards;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .profile-dropdown {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .profile-dropdown__actions {
        gap: 3px;
    }
    
    .profile-dropdown__action {
        padding: 10px 16px;
        font-size: 16px;
    }
}
