/* AU Journal 用户下拉菜单样式 */

.au-user-menu {
    position: relative;
    display: inline-block;
}

.au-user-btn {
    background: none;
    border: none;
    color: var(--au-primary, #800000);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.au-user-btn:hover {
    background: rgba(128, 0, 0, 0.1);
}

.au-user-btn i {
    font-size: 0.9rem;
}

.au-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.au-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.au-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #333;
}

.au-dropdown-item:last-child {
    border-bottom: none;
}

.au-dropdown-item:hover {
    background: #2a2a2a !important;
    color: #ffcc00 !important;
}

.au-dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    opacity: 1;
    color: #ffffff !important;
}

.au-dropdown-item:hover i {
    opacity: 1;
    color: #ffcc00 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .au-user-dropdown {
        right: -10px;
        min-width: 160px;
    }
    
    .au-dropdown-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .au-user-dropdown {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .au-dropdown-item {
        color: #ffffff !important;
        border-bottom-color: #444;
    }
    
    .au-dropdown-item:hover {
        background: #3a3a3a !important;
        color: #ffcc00 !important;
    }
}
