/* 用户搜索结果样式文件 */

/* 搜索结果容器 */
.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 搜索结果标题 */
.search-results-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

/* 用户结果网格布局 */
.user-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 用户卡片样式 */
.user-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 用户头像样式 */
.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4ECDC4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    flex-shrink: 0;
}

/* 用户信息容器 */
.user-info-wrapper {
    flex: 1;
}

/* 用户信息样式 */
.user-info {
    margin-bottom: 12px;
}

.user-email {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
}

.user-details {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 用户按钮区域 */
.user-buttons {
    display: flex;
    gap: 10px;
}

/* 关注按钮样式 */
.follow-button {
    padding: 8px 16px;
    background-color: #4ECDC4;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.follow-button:hover {
    background-color: #45b7af;
    border-color: #45b7af;
    color: white;
}

.follow-button.following {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #666;
}

.follow-button.following:hover {
    background-color: #e0e0e0;
    color: #555;
}

/* 查看主页按钮样式 */
.view-profile-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-profile-button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #555;
}

/* 无用户结果提示 */
.no-users-found {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-users-found i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-results-grid {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-buttons {
        flex-wrap: wrap;
    }
    
    .follow-button,
    .view-profile-button {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .search-results-container {
        padding: 10px;
    }
    
    .search-results-title {
        font-size: 20px;
    }
    
    .user-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-buttons {
        justify-content: center;
    }
}